|
|
| version 1.74, 2016/12/02 17:39:29 | version 1.75, 2016/12/02 21:36:25 |
|---|---|
| Line 51 static void _create(Request& r, MethodPa | Line 51 static void _create(Request& r, MethodPa |
| const String* class_name=0; | const String* class_name=0; |
| const String* constructor_name=0; | const String* constructor_name=0; |
| Value& voptions=params.as_no_junction(0, "params must not be code"); | Value& voptions=params.as_no_junction(0, "param must not be code"); |
| if(HashStringValue* options=voptions.get_hash()) { | if(HashStringValue* options=voptions.get_hash()) { |
| int valid_options=0; | int valid_options=0; |
| if(Value* vclass_name=options->get("class")) { | if(Value* vclass_name=options->get("class")) { |
| Line 78 static void _create(Request& r, MethodPa | Line 78 static void _create(Request& r, MethodPa |
| params_offset=1; | params_offset=1; |
| } else { | } else { |
| class_name=¶ms.as_string(0, "param must be string or hash"); | class_name=¶ms.as_string(0, "param must not be code"); |
| if(params.count()==1) | if(params.count()==1) |
| throw Exception(PARSER_RUNTIME, 0, "constructor name must be specified"); | throw Exception(PARSER_RUNTIME, 0, "constructor name must be specified"); |