for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TestMonitor\ActiveCampaign\Exceptions;
use Exception;
class ValidationException extends Exception
{
/**
* The array of errors.
*
* @var array
*/
public $errors;
* Create a new exception instance.
* @param array $errors
public function __construct(array $errors)
parent::__construct('The given data failed to pass validation.');
$this->errors = $errors;
}
* @return array
public function errors()
return $this->errors['errors'] ?? [];