HandleExceptions (Foundation\Bootstrap)

HandleExceptions

class HandleExceptions (View source)

Methods

void bootstrap(Application $app)

Bootstrap the given application.

void handleError(int $level, string $message, string $file = '', int $line, array $context = array())

Convert a PHP error to an ErrorException.

void handleException(Throwable $e)

Handle an uncaught exception from the application.

void handleShutdown()

Handle the PHP shutdown event.

Details

void bootstrap(Application $app)

Bootstrap the given application.

Parameters

Application $app

Return Value

void

void handleError(int $level, string $message, string $file = '', int $line, array $context = array())

Convert a PHP error to an ErrorException.

Parameters

int $level
string $message
string $file
int $line
array $context

Return Value

void

Exceptions

ErrorException

void handleException(Throwable $e)

Handle an uncaught exception from the application.

Note: Most exceptions can be handled via the try / catch block in the HTTP and Console kernels. But, fatal error exceptions must be handled differently since they are not normal exceptions.

Parameters

Throwable $e

Return Value

void

void handleShutdown()

Handle the PHP shutdown event.

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/Bootstrap/HandleExceptions.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部