- Make all tests pass Client (V4),CRMV2,CRMV4 - Simplify client submodule path - Move App_url to .env.testing
28 lines
591 B
PHP
28 lines
591 B
PHP
<?php
|
|
|
|
namespace App\Exceptions\Api\V4;
|
|
|
|
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://support.uwil.fr/
|
|
*
|
|
* @package LDCCrmClient
|
|
* @subpackage exceptions
|
|
*
|
|
*/
|
|
class CrmException extends \RuntimeException
|
|
{
|
|
/**
|
|
* 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()));
|
|
}
|
|
}
|