ldc-crm/app/Exceptions/Api/V2/CrmException.php
Alexis Gousseau 303834bbca
Crm V4
- Make all tests pass Client (V4),CRMV2,CRMV4
- Simplify client submodule path
- Move App_url to .env.testing
2023-10-06 16:37:29 +02:00

28 lines
596 B
PHP

<?php
namespace App\Exceptions\Api\V2;
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 ticker to https://supportweb.ldc.fr
*
* @package LDCCrmClient
* @subpackage exceptions
*/
class CrmException extends Exception
{
/**
* This is used by laravel only.
* It uses Log class to print the error.
*
* @return void
*/
public function report(): void
{
Log::critical(sprintf('CRM API: %s', $this->getMessage()));
}
}