* action object
* @var SingletonFactory
*/
- public $actionObject = null;
+ public $actionObject;
/**
* class name
* results of the executed action
* @var mixed
*/
- protected $response = null;
+ protected $response;
/**
* @inheritDoc
throw new AJAXException($exception->getMessage(), AJAXException::BAD_PARAMETERS, $e->getTraceAsString(), [
'errorMessage' => $exception->getMessage(),
'errorType' => $e->getType(),
- 'fieldName' => $exception->getFieldName()
+ 'fieldName' => $exception->getFieldName(),
+ 'realErrorMessage' => $exception->getErrorMessage()
]);
}
else if ($e instanceof ValidateActionException) {
throw new AJAXException($e->getMessage(), AJAXException::BAD_PARAMETERS, $e->getTraceAsString(), [
'errorMessage' => $e->getMessage(),
- 'fieldName' => $e->getFieldName()
+ 'fieldName' => $e->getFieldName(),
+ 'realErrorMessage' => $e->getErrorMessage()
]);
}
else if ($e instanceof NamedUserException) {