ldc-flucollector/app/Exceptions/Api/ApplicationException.php
2023-10-03 15:27:16 +02:00

24 lines
528 B
PHP

<?php
namespace App\Exceptions\Api;
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://support.uwil.fr
*/
class ApplicationException extends \RuntimeException
{
/**
* 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()));
}
}