class ErrorController extends JSONController

Methods

mixed
errorAction()

Show an error message, provided that the exception is stored in the request's attributes

array
genericErrorAction(string $message = 'An error occured')

Show a generic error message

array
modelNotFoundAction(string $type = '', string $message = 'The specified object was not found')

Show an error message for a model that wasn't found

Details

at line line 14
mixed errorAction()

Show an error message, provided that the exception is stored in the request's attributes

Return Value

mixed

at line line 35
array genericErrorAction(string $message = 'An error occured')

Show a generic error message

Parameters

string $message The error message to show

Return Value

array

at line line 56
array modelNotFoundAction(string $type = '', string $message = 'The specified object was not found')

Show an error message for a model that wasn't found

Parameters

string $type The type of the missing model
string $message The error message to show

Return Value

array