$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
- 'error' => $errorMessage,
+ 'is_error' => 1,
+ 'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
);
$expectedResult = array(
'is_error' => 0,
'version' => 3,
- 'count' => 23,
+ 'count' => 25,
'values' => array(
'0' => 'create',
'1' => 'delete',
- '2' => 'example_action1',
- '3' => 'example_action2',
- '4' => 'get',
- '5' => 'getactions',
- '6' => 'getcount',
- '7' => 'getfields',
- '8' => 'getlist',
- '9' => 'getoptions',
- '10' => 'getquick',
- '11' => 'getrefcount',
- '12' => 'getsingle',
- '13' => 'getstat',
- '14' => 'getvalue',
- '15' => 'merge',
- '16' => 'proximity',
- '17' => 'replace',
- '18' => 'setvalue',
- '19' => 'type_create',
- '20' => 'type_delete',
- '21' => 'type_get',
- '22' => 'update',
+ '2' => 'duplicatecheck',
+ '3' => 'example_action1',
+ '4' => 'example_action2',
+ '5' => 'get',
+ '6' => 'getactions',
+ '7' => 'getcount',
+ '8' => 'getfield',
+ '9' => 'getfields',
+ '10' => 'getlist',
+ '11' => 'getoptions',
+ '12' => 'getquick',
+ '13' => 'getrefcount',
+ '14' => 'getsingle',
+ '15' => 'getvalue',
+ '16' => 'merge',
+ '17' => 'proximity',
+ '18' => 'replace',
+ '19' => 'setvalue',
+ '20' => 'type_create',
+ '21' => 'type_delete',
+ '22' => 'type_get',
+ '23' => 'update',
+ '24' => 'validate',
),
'deprecated' => array(
'getquick' => 'The "getquick" action is deprecated in favor of "getlist".',