Exception
extends RuntimeException
in package
Class Exception
The code is used as exit code for the CLI tool. This should probably be extended. Many cases just fall back to the E_ANY code.
Tags
Table of Contents
Constants
- E_ANY = -1
- E_ARG_READ = 5
- E_OPT_ABIGUOUS = 4
- E_OPT_ARG_DENIED = 3
- E_OPT_ARG_REQUIRED = 2
- E_UNKNOWN_OPT = 1
Methods
- __construct() : mixed
Constants
E_ANY
public
mixed
E_ANY
= -1
E_ARG_READ
public
mixed
E_ARG_READ
= 5
E_OPT_ABIGUOUS
public
mixed
E_OPT_ABIGUOUS
= 4
E_OPT_ARG_DENIED
public
mixed
E_OPT_ARG_DENIED
= 3
E_OPT_ARG_REQUIRED
public
mixed
E_OPT_ARG_REQUIRED
= 2
E_UNKNOWN_OPT
public
mixed
E_UNKNOWN_OPT
= 1
Methods
__construct()
public
__construct([string $message = "" ][, int $code = 0 ][, Exception $previous = null ]) : mixed
Parameters
- $message : string = ""
-
The Exception message to throw.
- $code : int = 0
-
The Exception code
- $previous : Exception = null
-
The previous exception used for the exception chaining.