for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hechoenlaravel\JarvisFoundation\Exceptions;
use Exception;
use Illuminate\Validation\Validator;
class EntryValidationException extends Exception
{
/**
* @var Validator
*/
public $validator;
* @param Validator $validator
public function __construct(Validator $validator)
$this->validator = $validator;
}
* Get the errors for the exception
* @return MessageBag Message bad instance
public function getErrors()
return $this->validator->errors();