RouterException
extends FrameworkException
in package
RouterException
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.
- forControllerNotFound() : RouterException
- Throw when controller or its method is not found.
- forCopyError() : static
- forDynamicController() : RouterException
- Throw when dynamic controller.
- forEnabledZlibOutputCompression() : static
- forFabricatorCreateFailed() : static
- forInvalidControllerName() : RouterException
- Throw when controller name has `/`.
- forInvalidDirectory() : static
- forInvalidFile() : static
- forInvalidParameterType() : RouterException
- Thrown when the actual parameter type does not match the expected types.
- forInvalidRoute() : RouterException
- Throw when route is not valid.
- forMissingDefaultRoute() : RouterException
- Thrown when a default route is not set.
- 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
forControllerNotFound()
Throw when controller or its method is not found.
public
static forControllerNotFound(string $controller, string $method) : RouterException
Parameters
- $controller : string
- $method : string
Return values
RouterExceptionforCopyError()
public
static forCopyError(string $path) : static
Parameters
- $path : string
Return values
staticforDynamicController()
Throw when dynamic controller.
public
static forDynamicController(string $handler) : RouterException
Parameters
- $handler : string
Return values
RouterExceptionforEnabledZlibOutputCompression()
public
static forEnabledZlibOutputCompression() : static
Return values
staticforFabricatorCreateFailed()
public
static forFabricatorCreateFailed(string $table, string $reason) : static
Parameters
- $table : string
- $reason : string
Return values
staticforInvalidControllerName()
Throw when controller name has `/`.
public
static forInvalidControllerName(string $handler) : RouterException
Parameters
- $handler : string
Return values
RouterExceptionforInvalidDirectory()
public
static forInvalidDirectory(string $path) : static
Parameters
- $path : string
Return values
staticforInvalidFile()
public
static forInvalidFile(string $path) : static
Parameters
- $path : string
Return values
staticforInvalidParameterType()
Thrown when the actual parameter type does not match the expected types.
public
static forInvalidParameterType() : RouterException
Return values
RouterExceptionforInvalidRoute()
Throw when route is not valid.
public
static forInvalidRoute(string $route) : RouterException
Parameters
- $route : string
Return values
RouterExceptionforMissingDefaultRoute()
Thrown when a default route is not set.
public
static forMissingDefaultRoute() : RouterException
Return values
RouterExceptionforMissingExtension()
public
static forMissingExtension(string $extension) : static
No longer used.
Parameters
- $extension : string
Return values
staticforNoHandlers()
public
static forNoHandlers(string $class) : static
Parameters
- $class : string