25 lines
458 B
PHP
25 lines
458 B
PHP
<?php
|
|
|
|
namespace App\Exceptions;
|
|
|
|
use Exception;
|
|
use Throwable;
|
|
use function dd;
|
|
use function redirect;
|
|
|
|
class TabulationException extends Exception
|
|
{
|
|
public function report(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
public function render($request)
|
|
{
|
|
// if ($e instanceof TabulationException) {
|
|
return redirect('/tabulation/status')->with('error', $this->getMessage());
|
|
// }
|
|
// return parent::render($request, $e);
|
|
}
|
|
}
|