Pony.fm/app/Exceptions/Handler.php

61 lines
1.5 KiB
PHP
Raw Normal View History

2015-08-30 13:22:00 +02:00
<?php
/**
* Pony.fm - A community for pony fan music.
* Copyright (C) 2015 Feld0.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2021-02-14 03:34:58 +01:00
namespace App\Exceptions;
2015-08-30 13:22:00 +02:00
use Exception;
2017-11-28 08:00:11 +01:00
use GrahamCampbell\Exceptions\ExceptionHandler;
use Illuminate\Auth\AuthenticationException;
2021-02-14 19:57:52 +01:00
use Throwable;
2015-08-30 13:22:00 +02:00
class Handler extends ExceptionHandler
{
/**
2021-02-14 20:34:53 +01:00
* A list of the exception types that are not reported.
2015-08-30 13:22:00 +02:00
*
* @var array
*/
protected $dontReport = [
2017-11-28 08:00:11 +01:00
//
2015-08-30 13:22:00 +02:00
];
2017-11-28 08:00:11 +01:00
/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array
*/
protected $dontFlash = [
'password',
'password_confirmation',
];
2015-08-30 13:22:00 +02:00
/**
2021-02-14 20:34:53 +01:00
* Register the exception handling callbacks for the application.
2015-08-30 13:22:00 +02:00
*
* @return void
*/
2021-02-14 20:34:53 +01:00
public function register()
2015-08-30 13:22:00 +02:00
{
2021-02-14 20:34:53 +01:00
$this->reportable(function (Throwable $e) {
//
});
2015-08-30 13:22:00 +02:00
}
}