CodeIgniter v4.5 API

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
static

forCopyError()

public static forCopyError(string $path) : static
Parameters
$path : string
Return values
static

forDestinationNotAllowed()

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
static

forEnabledZlibOutputCompression()

public static forEnabledZlibOutputCompression() : static
Return values
static

forFabricatorCreateFailed()

public static forFabricatorCreateFailed(string $table, string $reason) : static
Parameters
$table : string
$reason : string
Return values
static

forFileNotAllowed()

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
static

forInvalidDirectory()

public static forInvalidDirectory(string $path) : static
Parameters
$path : string
Return values
static

forInvalidFile()

public static forInvalidFile(string $path) : static
Parameters
$path : string
Return values
static

forMissingExtension()

public static forMissingExtension(string $extension) : static

No longer used.

Parameters
$extension : string
Return values
static

forNoHandlers()

public static forNoHandlers(string $class) : static
Parameters
$class : string
Return values
static

        
On this page

Search results