App\Exceptions\PrettyPageException::__construct PHP 메소드

__construct() 공개 메소드

Custom error handler
public __construct ( string $message = "Error occured.", integer $code, $render = false )
$message string
$code integer
    public function __construct($message = "Error occured.", $code = -1, $render = false)
    {
        parent::__construct($message, $code);
        if ($render) {
            $this->showErrorPage()->send();
            exit;
        }
    }
PrettyPageException