mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 14:50:39 -04:00
16 lines
451 B
PHP
16 lines
451 B
PHP
<?php
|
|
|
|
namespace Exceptions;
|
|
|
|
class InvalidCollectionTypeException extends AppException{
|
|
/** @var string $message */
|
|
protected $message = 'Collection type should be `series` or `set` according to the EPUB specification.';
|
|
|
|
public function __construct(?string $collectionType){
|
|
if($collectionType !== null && trim($collectionType) != ''){
|
|
$this->message .= ' Type provided: ' . $collectionType;
|
|
}
|
|
|
|
parent::__construct($this->message);
|
|
}
|
|
}
|