handleError: die display error-message and die
object
&handleErrorDie
(object &$error, array $options)
-
object
$error: patError-Object
-
array
$options: options for handler
handleError: Echo display error message
object
&handleErrorEcho
(object &$error, array $options)
-
object
$error: patError-Object
-
array
$options: options for handler
handleError: Verbose display verbose output for developing purpose
object
&handleErrorVerbose
(object &$error, array $options)
-
object
$error: patError-Object
-
array
$options: options for handler
method for checking whether the return value of a pat application method is a pat error object.
boolean
isError
(mixed &$object)
creates a new patError object given the specified information.
mixed
&raise
(int $level, string $code, string $msg, [mixed $info = null])
-
int
$level: The error level - use any of PHP's own error levels for this: E_ERROR, E_WARNING, E_NOTICE, E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE.
-
string
$code: The application-internal error code for this error
-
string
$msg: The error message, which may also be shown the user if need be.
-
mixed
$info: Optional: Additional error information (usually only developer-relevant information that the user should never see, like a database DSN).
wrapper for the raise() method where you do not have to specify the error level - a patError object with error level E_ERROR will be returned.
object
&raiseError
(string $code, string $msg, [mixed $info = null])
-
string
$code: The application-internal error code for this error
-
string
$msg: The error message, which may also be shown the user if need be.
-
mixed
$info: Optional: Additional error information (usually only developer-relevant information that the user should never see, like a database DSN).
wrapper for the raise() method where you do not have to specify the error level - a patError object with error level E_NOTICE will be returned.
object
&raiseNotice
(string $code, string $msg, [mixed $info = null])
-
string
$code: The application-internal error code for this error
-
string
$msg: The error message, which may also be shown the user if need be.
-
mixed
$info: Optional: Additional error information (usually only developer-relevant information that the user should never see, like a database DSN).
wrapper for the raise() method where you do not have to specify the error level - a patError object with error level E_WARNING will be returned.
object
&raiseWarning
(string $code, string $msg, [mixed $info = null])
-
string
$code: The application-internal error code for this error
-
string
$msg: The error message, which may also be shown the user if need be.
-
mixed
$info: Optional: Additional error information (usually only developer-relevant information that the user should never see, like a database DSN).