$max) { throw new ValidationException('Value above maximum: ' . $numeric); } return $numeric; } /** * Custom exception for validation errors */ class ValidationException extends Exception {} ?>