Class JError

Description

Error Handling Class

This class is an proxy of the patError class

  • since: 1.1
  • static:

Located in /utilities/error.php (line 26)

patErrorManager
   |
   --JError
Method Summary
 object &handleErrorDie (object &$error, array $options)
 object &handleErrorEcho (object &$error, array $options)
 object &handleErrorVerbose (object &$error, array $options)
 boolean isError (mixed &$object)
 mixed &raise (int $level, string $code, string $msg, [mixed $info = null])
 object &raiseError (string $code, string $msg, [mixed $info = null])
 object &raiseNotice (string $code, string $msg, [mixed $info = null])
 object &raiseWarning (string $code, string $msg, [mixed $info = null])
Methods
handleErrorDie (line 217)

handleError: die display error-message and die

object &handleErrorDie (object &$error, array $options)
  • object $error: patError-Object
  • array $options: options for handler
handleErrorEcho (line 145)

handleError: Echo display error message

object &handleErrorEcho (object &$error, array $options)
  • object $error: patError-Object
  • array $options: options for handler
handleErrorVerbose (line 179)

handleError: Verbose display verbose output for developing purpose

object &handleErrorVerbose (object &$error, array $options)
  • object $error: patError-Object
  • array $options: options for handler
isError (line 37)

method for checking whether the return value of a pat application method is a pat error object.

  • return: True if argument is a JError-object, false otherwise.
  • access: public
  • static:
boolean isError (mixed &$object)
  • mixed &$object
raise (line 100)

creates a new patError object given the specified information.

  • return: The configured patError object or false if this error should be ignored
  • see: patError
  • access: public
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).
raiseError (line 53)

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.

  • return: The configured JError object
  • see: patErrorManager
  • access: public
  • static:
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).
raiseNotice (line 85)

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.

  • return: The configured JError object
  • see: patErrorManager
  • access: public
  • static:
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).
raiseWarning (line 69)

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.

  • return: The configured JError object
  • see: patErrorManager
  • access: public
  • static:
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).

Documentation generated on Sat, 4 Feb 2006 14:23:21 +0100 by phpDocumentor 1.3.0RC4