Class myMVC_ErrorHandler

Description

Generic error handler.

It supports displaying on browser and sending E-Mail to a configured address (see $config['ERROR']['ALERT'] in mymvc.php)

Located in /myMVC/ErrorHandler.php (line 30)


	
			
Method Summary
 static void sendAlert (string $msg, [int $type = ALERT_CRITICAL])
 static void setExceptionCatcher ()
 static void setUserExceptionCatcher (string $catcher)
 static void systemError (Exception $exception)
Methods
static sendAlert (line 59)

sends an alert to the configured E-Mail or Nagios server

  • access: public
void sendAlert (string $msg, [int $type = ALERT_CRITICAL])
  • string $msg: Text to be sent
  • int $type: Alert type (see mymvc.php). Default ALERT_CRITICAL
static setExceptionCatcher (line 105)

Set the default catcher for uncatched exceptions

  • access: public
void setExceptionCatcher ()
static setUserExceptionCatcher (line 117)

Set a user defined function (or class-method) for uncatched exception

  • access: public
void setUserExceptionCatcher (string $catcher)
  • string $catcher: Function or method name. If method, then in the format class::method
static systemError (line 37)

Display an error on the browser

  • access: public
void systemError (Exception $exception)
  • Exception $exception

Documentation generated on Wed, 27 Jun 2012 09:45:14 +0200 by phpDocumentor 1.4.4