Documentation

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
author

Andreas Gohr andi@splitbrain.org

license

MIT

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_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.


        
On this page

Search results