Overview

Namespaces

  • None
  • splitbrain
    • phpcli
      • tests

Classes

  • CLI
  • Colors
  • Options
  • PSR3CLI
  • TableFormatter

Exceptions

  • Exception
  • Overview
  • Namespace
  • Class

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
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()
Methods inherited from Exception
__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Constants summary
integer E_ANY
# -1
integer E_UNKNOWN_OPT
# 1
integer E_OPT_ARG_REQUIRED
# 2
integer E_OPT_ARG_DENIED
# 3
integer E_OPT_ABIGUOUS
# 4
integer E_ARG_READ
# 5
Properties inherited from Exception
$code, $file, $line, $message
API documentation generated by ApiGen