web/lib/Exceptions/InvalidUrlException.php
2024-05-10 23:38:57 -05:00

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 . '>.');
}
}
}