1 | <?php |
||
15 | class Handler extends ExceptionHandler |
||
16 | { |
||
17 | /** |
||
18 | * Report or log an exception. |
||
19 | * |
||
20 | * This is a great spot to send exceptions to Sentry, Bugsnag, etc. |
||
21 | * |
||
22 | * @param \Exception $e |
||
23 | * @return void |
||
24 | */ |
||
25 | public function report(Exception $e) |
||
45 | |||
46 | /** |
||
47 | * Get the request info. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | protected function getRequestInfo() |
||
67 | |||
68 | /** |
||
69 | * Render an exception into an HTTP response. |
||
70 | * |
||
71 | * @param \Illuminate\Http\Request $request |
||
72 | * @param \Exception $e |
||
73 | * @return \Illuminate\Http\Response |
||
74 | */ |
||
75 | public function render($request, Exception $e) |
||
85 | |||
86 | /** |
||
87 | * Render for MaintenanceModeException. |
||
88 | * |
||
89 | * @param \Illuminate\Http\Request $request |
||
90 | * @param \Illuminate\Foundation\Http\Exceptions\MaintenanceModeException $e |
||
91 | * @return \Illuminate\Http\Response |
||
92 | */ |
||
93 | protected function renderForMaintenanceMode($request, MaintenanceModeException $e) |
||
101 | |||
102 | /** |
||
103 | * Convert an authentication exception into an unauthenticated response. |
||
104 | * |
||
105 | * @param \Illuminate\Http\Request $request |
||
106 | * @param \Illuminate\Auth\AuthenticationException $e |
||
107 | * @return \Illuminate\Http\Response |
||
108 | */ |
||
109 | protected function unauthenticated($request, AuthenticationException $e) |
||
117 | |||
118 | /** |
||
119 | * Create a response object from the given validation exception. |
||
120 | * |
||
121 | * @param \Illuminate\Validation\ValidationException $e |
||
122 | * @param \Illuminate\Http\Request $request |
||
123 | * @return \Symfony\Component\HttpFoundation\Response |
||
124 | */ |
||
125 | protected function convertValidationExceptionToResponse(ValidationException $e, $request) |
||
135 | |||
136 | /** |
||
137 | * Render the given HttpException. |
||
138 | * |
||
139 | * @param \Symfony\Component\HttpKernel\Exception\HttpException $e |
||
140 | * @return \Symfony\Component\HttpFoundation\Response |
||
141 | */ |
||
142 | protected function renderHttpException(HttpException $e) |
||
165 | |||
166 | /** |
||
167 | * Create a Symfony response for the given exception. |
||
168 | * |
||
169 | * @param \Exception $e |
||
170 | * @return \Symfony\Component\HttpFoundation\Response |
||
171 | */ |
||
172 | protected function convertExceptionToResponse(Exception $e) |
||
180 | |||
181 | /** |
||
182 | * Create an API response for the given exception. |
||
183 | * |
||
184 | * @param \Exception $e |
||
185 | * @return \ElfSundae\Laravel\Api\ApiResponse |
||
186 | */ |
||
187 | protected function convertExceptionToApiResponse(Exception $e) |
||
193 | |||
194 | /** |
||
195 | * Create an API response. |
||
196 | * |
||
197 | * @param mixed $message |
||
198 | * @param int $code |
||
199 | * @param \Exception $e |
||
200 | * @return \ElfSundae\Laravel\Api\ApiResponse |
||
201 | */ |
||
202 | protected function createApiResponse($message, $code, Exception $e) |
||
216 | } |
||
217 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.