Class MOXMAN_Exception

InheritanceMOXMAN_Exception » Exception

Exception class used across the product.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getData() Returns the extra data for the event. MOXMAN_Exception
registerErrorHandler() Registers the error handler and treat everything as errors. MOXMAN_Exception
setData() Sets data to be passed out with the exception could for example a file path. MOXMAN_Exception
setFile() Sets the current file where the exception was thrown. MOXMAN_Exception
setLine() Sets the line number where the exception was thrown. MOXMAN_Exception
throwRuntimeError() Throws a internal runtime error as a new exception. MOXMAN_Exception

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
DEMO_MODE 100 MOXMAN_Exception
FILE_DOESNT_EXIST 105 MOXMAN_Exception
FILE_EXISTS 103 MOXMAN_Exception
FILE_SIZE_TO_LARGE 104 MOXMAN_Exception
INVALID_FILE_NAME 106 MOXMAN_Exception
INVALID_FILE_TYPE 108 MOXMAN_Exception
METHOD_NOT_FOUND 107 MOXMAN_Exception
NEEDS_INSTALLATION 11 MOXMAN_Exception
NO_ACCESS 10 MOXMAN_Exception
NO_ACCESS_EXTERNAL_AUTH 1009 MOXMAN_Exception
NO_READ_ACCESS 101 MOXMAN_Exception
NO_WRITE_ACCESS 102 MOXMAN_Exception

Method Details

getData() public method

Returns the extra data for the event.

public Array getData ( )
return Array

$data Array with extra data.

registerErrorHandler() public static method

Registers the error handler and treat everything as errors.

public static void registerErrorHandler ( )
setData() public method

Sets data to be passed out with the exception could for example a file path.

public void setData ( $data )
$data Array

Array with extra data to send.

setFile() public method

Sets the current file where the exception was thrown.

public void setFile ( $file )
$file string

File where the exception was thrown.

setLine() public method

Sets the line number where the exception was thrown.

public void setLine ( $line )
$line int

Line number where the exception was thrown.

throwRuntimeError() public static method

Throws a internal runtime error as a new exception.

public static void throwRuntimeError ( $errno, $errstr, $errfile, $errline )
$errno int

Error number.

$errstr string

Error string.

$errfile string

Error file.

$errline int

Error line.