Class AjaxException
| category |
System |
|---|---|
| package |
Http |
| subpackage |
Exceptions |
| extends |
Exception |
response(\Exception $ex) : array
This particular exception class can pass JSON encoded information as an AJAX response, so that they can be parsed and manipulated by JavaScript.
\ExceptionContains the exception information to be returned as a response.
arrayProvide this array as an argument in the JsonHttpControllerResponse object.