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 LDC\LDCCRM\Exceptions;
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 */
15class CrmException extends \RuntimeException
16{
17    /**
18     * This is used by laravel only.
19     * It uses Log class to print the error.
20     *
21     * @return void
22     */
23    public function report(): void
24    {
25        Log::critical(sprintf('CRM API: %s', $this->getMessage()));
26    }
27}