BookStack/app/Exceptions/ZipImportException.php

14 lines
283 B
PHP
Raw Normal View History

<?php
namespace BookStack\Exceptions;
class ZipImportException extends \Exception
{
public function __construct(
public array $errors
) {
$message = "Import failed with errors:" . implode("\n", $this->errors);
parent::__construct($message);
}
}