|
|
| version 1.197, 2010/10/26 21:09:06 | version 1.198, 2010/10/30 22:37:53 |
|---|---|
| Line 71 static void _int(Request& r, MethodParam | Line 71 static void _int(Request& r, MethodParam |
| if(self_string.is_empty()) | if(self_string.is_empty()) |
| throw Exception(PARSER_RUNTIME, | throw Exception(PARSER_RUNTIME, |
| 0, | 0, |
| "parameter is empty string, error converting"); | "unable to convert empty string without default specified"); |
| converted=self_string.as_int(); | converted=self_string.as_int(); |
| } catch(...) { // convert problem | } catch(...) { // convert problem |
| if(params.count()>0) | if(params.count()>0) |
| Line 89 static void _double(Request& r, MethodPa | Line 89 static void _double(Request& r, MethodPa |
| if(self_string.is_empty()) | if(self_string.is_empty()) |
| throw Exception(PARSER_RUNTIME, | throw Exception(PARSER_RUNTIME, |
| 0, | 0, |
| "parameter is empty string, error converting"); | "unable to convert empty string without default specified"); |
| converted=self_string.as_double(); | converted=self_string.as_double(); |
| } catch(...) { // convert problem | } catch(...) { // convert problem |
| if(params.count()>0) | if(params.count()>0) |
| Line 108 static void _bool(Request& r, MethodPara | Line 108 static void _bool(Request& r, MethodPara |
| if(self_string.is_empty()) | if(self_string.is_empty()) |
| throw Exception(PARSER_RUNTIME, | throw Exception(PARSER_RUNTIME, |
| 0, | 0, |
| "parameter is empty string, error converting"); | "unable to convert empty string without default specified"); |
| try { | try { |
| converted=self_string.as_bool(); | converted=self_string.as_bool(); |