PublisherException
extends FrameworkException
in package
Publisher Exception Class
Handles exceptions related to actions taken by a Publisher.
Table of Contents
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.
- forCollision() : static
- Throws when a file should be overwritten yet cannot.
- forCopyError() : static
- forDestinationNotAllowed() : static
- Throws when given a destination that is not in the list of allowed directories.
- forEnabledZlibOutputCompression() : static
- forFabricatorCreateFailed() : static
- forFileNotAllowed() : static
- Throws when a file fails to match the allowed pattern for its destination.
- forInvalidDirectory() : static
- forInvalidFile() : static
- forMissingExtension() : static
- forNoHandlers() : 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
forCollision()
Throws when a file should be overwritten yet cannot.
public
static forCollision(string $from, string $to) : static
Parameters
- $from : string
-
The source file
- $to : string
-
The destination file
Return values
staticforCopyError()
public
static forCopyError(string $path) : static
Parameters
- $path : string
Return values
staticforDestinationNotAllowed()
Throws when given a destination that is not in the list of allowed directories.
public
static forDestinationNotAllowed(string $destination) : static
Parameters
- $destination : string
Return values
staticforEnabledZlibOutputCompression()
public
static forEnabledZlibOutputCompression() : static
Return values
staticforFabricatorCreateFailed()
public
static forFabricatorCreateFailed(string $table, string $reason) : static
Parameters
- $table : string
- $reason : string
Return values
staticforFileNotAllowed()
Throws when a file fails to match the allowed pattern for its destination.
public
static forFileNotAllowed(string $file, string $directory, string $pattern) : static
Parameters
- $file : string
- $directory : string
- $pattern : string
Return values
staticforInvalidDirectory()
public
static forInvalidDirectory(string $path) : static
Parameters
- $path : string
Return values
staticforInvalidFile()
public
static forInvalidFile(string $path) : static
Parameters
- $path : string
Return values
staticforMissingExtension()
public
static forMissingExtension(string $extension) : static
No longer used.
Parameters
- $extension : string
Return values
staticforNoHandlers()
public
static forNoHandlers(string $class) : static
Parameters
- $class : string