FileException
extends RuntimeException
in package
implements
ExceptionInterface
uses
DebugTraceableTrait
Table of Contents
Interfaces
- ExceptionInterface
- Provides a domain-level interface for broad capture of all framework-related exceptions.
Methods
- __construct() : mixed
- Tweaks the exception's constructor to assign the file/line to where it is actually raised rather than were it is instantiated.
- forExpectedDirectory() : static
- Throws when an item is expected to be a directory but is not or is missing.
- forExpectedFile() : static
- Throws when an item is expected to be a file but is not or is missing.
- forUnableToMove() : static
Methods
__construct()
Tweaks the exception's constructor to assign the file/line to where it is actually raised rather than were it is instantiated.
public
final __construct([string $message = '' ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string = ''
- $code : int = 0
- $previous : Throwable|null = null
forExpectedDirectory()
Throws when an item is expected to be a directory but is not or is missing.
public
static forExpectedDirectory(string $caller) : static
Parameters
- $caller : string
-
The method causing the exception
Return values
staticforExpectedFile()
Throws when an item is expected to be a file but is not or is missing.
public
static forExpectedFile(string $caller) : static
Parameters
- $caller : string
-
The method causing the exception
Return values
staticforUnableToMove()
public
static forUnableToMove([string|null $from = null ][, string|null $to = null ][, string|null $error = null ]) : static
Parameters
- $from : string|null = null
- $to : string|null = null
- $error : string|null = null