Code Coverage
 
Lines
Functions and Methods
Classes and Traits
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
n/a
0 / 0
1
1<?php
2
3namespace App\Exceptions\Api\V2;
4
5use Exception;
6use 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 */
17class 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}