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