aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Exceptions/Handler.php
diff options
context:
space:
mode:
authorMarvin Borner2018-07-20 13:57:57 +0200
committerMarvin Borner2018-07-20 13:57:57 +0200
commit932d439444f10774bff546923cc0a2e5e2f2857b (patch)
treeef9bcc039d263f929b4f4991881a52a8343c1dfe /app/Exceptions/Handler.php
parentbd04ac097a0a29ba7c48a5f4a46d99ae7d86eea1 (diff)
Rewrite (only for backend/oauth/api use from now on)
Diffstat (limited to 'app/Exceptions/Handler.php')
-rw-r--r--[-rwxr-xr-x]app/Exceptions/Handler.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php
index f1078a9..043cad6 100755..100644
--- a/app/Exceptions/Handler.php
+++ b/app/Exceptions/Handler.php
@@ -4,8 +4,6 @@ namespace App\Exceptions;
use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
-use Illuminate\Support\Facades\View;
-use \Symfony\Component\HttpKernel\Exception\HttpException;
class Handler extends ExceptionHandler
{
@@ -48,21 +46,6 @@ class Handler extends ExceptionHandler
*/
public function render($request, Exception $exception)
{
- if ($exception instanceof HttpException) {
- $statusCode = $exception->getStatusCode();
- switch ($statusCode) {
- case '404':
- $codeMessage = 'Page could not be found.';
- }
- $errorMessage = $exception->getMessage() == '' ? (isset($codeMessage) ? $codeMessage : 'An unknown error occurred.') : $exception->getMessage();
-
-
- return response(View::make('errors.http', [
- 'ErrorMessage' => $errorMessage,
- 'ErrorCode' => $statusCode
- ]), $statusCode);
- }
-
return parent::render($request, $exception);
}
}