2024-11-05 23:41:58 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace BookStack\Exceptions;
|
|
|
|
|
|
|
|
class ZipImportException extends \Exception
|
|
|
|
{
|
|
|
|
public function __construct(
|
|
|
|
public array $errors
|
|
|
|
) {
|
2024-11-11 23:06:46 +08:00
|
|
|
$message = "Import failed with errors:" . implode("\n", $this->errors);
|
|
|
|
parent::__construct($message);
|
2024-11-05 23:41:58 +08:00
|
|
|
}
|
|
|
|
}
|