Class Exception
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.
- Exception implements Throwable
- Extended by RuntimeException
- Extended by splitbrain\phpcli\Exception
Namespace: splitbrain\phpcli
License: MIT
Author: Andreas Gohr andi@splitbrain.org
Located at src/Exception.php
Methods summary
License: MIT
Author: Andreas Gohr andi@splitbrain.org
Located at src/Exception.php
public
#
__construct( string $message = "", integer $code = 0, splitbrain\phpcli\Exception
$previous = null )
Parameters
- $message
- The Exception message to throw.
- $code
- The Exception code
- $previous
- The previous exception used for the exception chaining.
Overrides
Exception::__construct()
__toString(),
__wakeup(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
$code,
$file,
$line,
$message