CLIException
extends RuntimeException
in package
Uses
DebugTraceableTrait
CLIException
Table of Contents
- __construct() : mixed
- Tweaks the exception's constructor to assign the file/line to where it is actually raised rather than were it is instantiated.
- forInvalidColor() : CLIException
- Thrown when `$color` specified for `$type` is not within the allowed list of colors.
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[, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string = ''
- $code : int
- $previous : Throwable|null = null
Return values
mixed —forInvalidColor()
Thrown when `$color` specified for `$type` is not within the allowed list of colors.
public
static forInvalidColor(string $type, string $color) : CLIException
Parameters
- $type : string
- $color : string