CodeIgniter v4.5 API

CLIException extends RuntimeException
in package
uses DebugTraceableTrait

CLIException

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.
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 = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
$message : string = ''
$code : int = 0
$previous : Throwable|null = null

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
Return values
CLIException

        
On this page

Search results