ldc-crm-client/src/Exceptions/ValidationException.php

22 lines
386 B
PHP
Raw Normal View History

<?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()));
}
}