class BaseErrorHandler (View source)

Methods

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

Render view as response

void
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 void json($exception, mixed $code = null)

Send the json as response

Parameters

$exception
mixed $code

Return Value

void