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