Files
nl-admin-api/app/Exceptions/Handler.php

52 lines
1.0 KiB
PHP
Raw Normal View History

<?php
namespace App\Exceptions;
2014-11-18 22:48:38 -06:00
use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
2015-02-22 20:47:03 -06:00
class Handler extends ExceptionHandler
{
/**
2017-07-19 16:21:03 -05:00
* A list of the exception types that are not reported.
2015-02-22 20:47:03 -06:00
*
* @var array
*/
protected $dontReport = [
2017-05-06 16:11:24 -04:00
//
2015-02-22 20:47:03 -06:00
];
2014-12-02 17:21:16 -06:00
2017-07-19 16:21:03 -05:00
/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array
*/
protected $dontFlash = [
'password',
'password_confirmation',
];
2015-02-22 20:47:03 -06:00
/**
* Report or log an exception.
*
* @param \Exception $exception
2015-02-22 20:47:03 -06:00
* @return void
*/
public function report(Exception $exception)
2015-02-22 20:47:03 -06:00
{
parent::report($exception);
2015-02-22 20:47:03 -06:00
}
2014-11-18 22:48:38 -06:00
2015-02-22 20:47:03 -06:00
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $exception
2015-02-22 20:47:03 -06:00
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception)
2015-02-22 20:47:03 -06:00
{
return parent::render($request, $exception);
2015-02-22 20:47:03 -06:00
}
2014-11-18 22:48:38 -06:00
}