AjaxException

Extends \Exception

Class AjaxException

category

System

package

Http

subpackage

Exceptions

extends

Exception

Methods

Returns a JSON encoded object containing the exception information.

response(\Exception $ex) : array
static

This particular exception class can pass JSON encoded information as an AJAX response, so that they can be parsed and manipulated by JavaScript.

Arguments

$ex

\Exception

Contains the exception information to be returned as a response.

Response

array

Provide this array as an argument in the JsonHttpControllerResponse object.