mirror of
https://github.com/daledavies/jump.git
synced 2026-05-07 10:07:20 +02:00
Add and improve custom exception types for all cases
This commit is contained in:
20
jumpapp/classes/Exceptions/SiteNotFoundException.php
Normal file
20
jumpapp/classes/Exceptions/SiteNotFoundException.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* ██ ██ ██ ███ ███ ██████
|
||||
* ██ ██ ██ ████ ████ ██ ██
|
||||
* ██ ██ ██ ██ ████ ██ ██████
|
||||
* ██ ██ ██ ██ ██ ██ ██ ██
|
||||
* █████ ██████ ██ ██ ██
|
||||
*
|
||||
* @author Dale Davies <dale@daledavies.co.uk>
|
||||
* @copyright Copyright (c) 2022, Dale Davies
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
namespace Jump\Exceptions;
|
||||
|
||||
class SiteNotFoundException extends \Exception {
|
||||
public function __construct(string $ref) {
|
||||
parent::__construct('The site could not be found (' . $ref . ')');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user