class BaseErrorHandler (View source)

Methods

string
render(string $view, array $data = [])

Render view as response

mixed
json($exception, mixed $code = null)

Send the json as response

Details

protected string render(string $view, array $data = [])

Render view as response

Parameters

string $view
array $data

Return Value

string

protected mixed json($exception, mixed $code = null)

Send the json as response

Parameters

$exception
mixed $code

Return Value

mixed