Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| CrmException | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||
| report | n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||||
| 1 | <?php |
| 2 | |
| 3 | namespace LDC\LDCCRM\Exceptions; |
| 4 | |
| 5 | use Exception; |
| 6 | use Illuminate\Support\Facades\Log; |
| 7 | |
| 8 | /** |
| 9 | * This is a critical error. |
| 10 | * The request could not be handled. You may dump any value you can |
| 11 | * get before submitting a ticker to https://supportweb.ldc.fr |
| 12 | * |
| 13 | * @package LDCCrmClient |
| 14 | * @subpackage exceptions |
| 15 | * @codeCoverageIgnore |
| 16 | */ |
| 17 | class CrmException extends Exception |
| 18 | { |
| 19 | /** |
| 20 | * This is used by laravel only. |
| 21 | * It uses Log class to print the error. |
| 22 | * |
| 23 | * @return void |
| 24 | */ |
| 25 | public function report() |
| 26 | { |
| 27 | Log::critical(sprintf('CRM API: %s', $this->getMessage())); |
| 28 | } |
| 29 | } |