22 lines
465 B
PHP
22 lines
465 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
|
|
{
|
|
public function report()
|
|
{
|
|
Log::critical(sprintf('CRM API: %s', $this->getMessage()));
|
|
}
|
|
}
|