| 1 | <?php |
||
| 20 | class InvalidURI extends \InvalidArgumentException implements Exception { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Create a new instance of the exception for a file that is not accessible |
||
| 24 | * or not readable. |
||
| 25 | * |
||
| 26 | * @since %VERSION% |
||
| 27 | * |
||
| 28 | * @param string $uri URI of the file that is not accessible or not |
||
| 29 | * readable. |
||
| 30 | * |
||
| 31 | * @return static |
||
| 32 | */ |
||
| 33 | public static function from_uri( $uri ) { |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Create a new instance of the exception for a file that is not in the list. |
||
| 44 | * |
||
| 45 | * @since %VERSION% |
||
| 46 | * |
||
| 47 | * @param string $uri The invalid URI. |
||
| 48 | * @param array $list The list of valid URIs. |
||
| 49 | * |
||
| 50 | * @return InvalidURI |
||
| 51 | */ |
||
| 52 | public static function from_list( $uri, array $list ) { |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Create a new instance of the exception for a path that is invalid. |
||
| 64 | * |
||
| 65 | * @since %VERSION% |
||
| 66 | * |
||
| 67 | * @param string $path The path that is invalid. |
||
| 68 | * |
||
| 69 | * @return static |
||
| 70 | */ |
||
| 71 | public static function from_asset_path( $path ) { |
||
| 79 | } |
||
| 80 |