AjaxException
extends Exception
in package
Class AjaxException
Tags
Table of Contents
- response() : array<string|int, mixed>
- Returns a JSON encoded object containing the exception information.
Methods
response()
Returns a JSON encoded object containing the exception information.
public
static response(Exception $ex) : array<string|int, mixed>
This particular exception class can pass JSON encoded information as an AJAX response, so that they can be parsed and manipulated by JavaScript.
Parameters
- $ex : Exception
-
Contains the exception information to be returned as a response.
Return values
array<string|int, mixed> —Provide this array as an argument in the JsonHttpControllerResponse object.