\alizephpAlizePHPException

Exception class for the alizephp package. It adds stderr and command to the basic properties of parent class Exception.

Summary

Methods
Properties
Constants
__construct()
getCommand()
getStdErr()
getStdOut()
__toString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$command
$stderr
N/A

Properties

$command

$command : string

Stores the command that threw this exception, if any.

Type

string

$stderr

$stderr : string

If the exception was threw by a command, stores the stderr string generated by it

Type

string

Methods

__construct()

__construct(string $message, string $command, string $stderr, string $code)

Creates an AlizePHPException

Parameters

string $message

Message of the exception, if the exception is originated in a command, it should store the stdout of that command

string $command

Command that threw this exception, if any.

string $stderr

Stderr of the command that threw the exception, if any.

string $code

Code of the exception. If might be the return value of the command that threw the exception, if any.

getCommand()

getCommand() : string

Returns executable name and parameters of the command that threw the exception, if any.

Returns

string

getStdErr()

getStdErr() : string

Returns stderr output of the command that threw the exception, if any.

Returns

string

getStdOut()

getStdOut() : string

Returns stdout output of the command that threw the exception, if any, or the Exception message on the other hand.

Returns

string

__toString()

__toString()

(non-PHPdoc)