ldc-flucollector/app/Exceptions/Api/ApplicationException.php

26 lines
537 B
PHP
Raw Permalink Normal View History

2022-04-06 10:36:10 +02:00
<?php
namespace App\Exceptions\Api;
use Exception;
use Illuminate\Support\Facades\Log;
/**
* This is a critical error.
* The request could not be handled. You may dump any value you can
* get before submitting a ticket to https://supportweb.ldc.fr
*/
class ApplicationException extends Exception
{
/**
* This is used by laravel only.
* It uses Log class to print the error.
*
* @return void
*/
public function report()
{
Log::critical(sprintf('API: %s', $this->getMessage()));
}
}