authserver/testCAS/app/Exceptions/Handler.php
changeset 0 1afc9d2ab94d
equal deleted inserted replaced
-1:000000000000 0:1afc9d2ab94d
       
     1 <?php namespace TestCAS\Exceptions;
       
     2 
       
     3 use Exception;
       
     4 use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
       
     5 
       
     6 class Handler extends ExceptionHandler
       
     7 {
       
     8     /**
       
     9      * A list of the exception types that should not be reported.
       
    10      *
       
    11      * @var array
       
    12      */
       
    13     protected $dontReport = [
       
    14         'Symfony\Component\HttpKernel\Exception\HttpException'
       
    15     ];
       
    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)
       
    26     {
       
    27         return parent::report($e);
       
    28     }
       
    29 
       
    30     /**
       
    31      * Render an exception into an HTTP response.
       
    32      *
       
    33      * @param  \Illuminate\Http\Request  $request
       
    34      * @param  \Exception  $e
       
    35      * @return \Illuminate\Http\Response
       
    36      */
       
    37     public function render($request, Exception $e)
       
    38     {
       
    39         return parent::render($request, $e);
       
    40     }
       
    41 }