showErrorPage()->send(); exit; } } public function showErrorPage() { return response()->view('errors.pretty', ['code' => $this->code, 'message' => $this->message]); } }