*/ private array $errors; public function __construct(array $errors = [], ?Throwable $previous = null) { $this->errors = $errors; parent::__construct( 'Could not generate the document', 15252, $previous ); } /** * @return array */ public function getErrors(): array { return $this->errors; } }