mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 14:20:29 -04:00
13 lines
279 B
PHP
13 lines
279 B
PHP
<?
|
|
namespace Exceptions;
|
|
|
|
class InvalidUrlException extends AppException{
|
|
/** @var string $message */
|
|
protected $message = 'Invalid URL.';
|
|
|
|
public function __construct(?string $url = null){
|
|
if($url !== null){
|
|
parent::__construct('Invalid URL: <' . $url . '>.');
|
|
}
|
|
}
|
|
}
|