Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| ValidationException | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| report | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace LDC\LDCCRM\Exceptions; |
| 4 | |
| 5 | use Illuminate\Support\Facades\Log; |
| 6 | |
| 7 | /** |
| 8 | * This would be thrown if a data could not be validated |
| 9 | * on any models |
| 10 | * |
| 11 | * @package LDCCrmClient |
| 12 | * @subpackage exceptions |
| 13 | */ |
| 14 | class ValidationException extends \RuntimeException |
| 15 | { |
| 16 | /** |
| 17 | * This is used by laravel only. |
| 18 | * It uses Log class to print the error. |
| 19 | * |
| 20 | * @return void |
| 21 | */ |
| 22 | public function report() |
| 23 | { |
| 24 | Log::error(sprintf('CRM Client: %s', $this->getMessage())); |
| 25 | } |
| 26 | } |