22 lines
386 B
PHP
22 lines
386 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace LDC\LDCCRM\Exceptions;
|
||
|
|
|
||
|
|
use Exception;
|
||
|
|
use Illuminate\Support\Facades\Log;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This would be thrown if a data could not be validated
|
||
|
|
* on any models
|
||
|
|
*
|
||
|
|
* @package LDCCrmClient
|
||
|
|
* @subpackage exceptions
|
||
|
|
*/
|
||
|
|
class ValidationException extends Exception
|
||
|
|
{
|
||
|
|
public function report()
|
||
|
|
{
|
||
|
|
Log::error(sprintf('CRM Client: %s', $this->getMessage()));
|
||
|
|
}
|
||
|
|
}
|