Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| ValidationException | 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 would be thrown if a data could not be validated |
| 10 | * on any models |
| 11 | * |
| 12 | * @package LDCCrmClient |
| 13 | * @subpackage exceptions |
| 14 | * @codeCoverageIgnore |
| 15 | */ |
| 16 | class ValidationException extends Exception |
| 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() |
| 25 | { |
| 26 | Log::error(sprintf('CRM Client: %s', $this->getMessage())); |
| 27 | } |
| 28 | } |