Laravel AT Protocol Client (alpha & unstable)
at dev 486 B view raw
1<?php 2 3namespace SocialDept\AtpClient\Exceptions; 4 5class ValidationException extends \Exception 6{ 7 public function __construct( 8 public readonly array $errors, 9 string $message = 'Response validation failed', 10 int $code = 0, 11 ?\Throwable $previous = null 12 ) { 13 parent::__construct($message, $code, $previous); 14 } 15 16 /** 17 * Get validation errors 18 */ 19 public function getErrors(): array 20 { 21 return $this->errors; 22 } 23}