wasp.core
[ class tree: wasp.core ] [ index: wasp.core ] [ all elements ]

Class: WaspErrorHandler

Source Location: /core/WaspErrorHandler.php

Class Overview


Error Handler class for WASP applications called from WASP_CORE/wasp_init.php


Author(s):

  • brian.fioca@pangomedia.com

Methods



Class Details

[line 28]
Error Handler class for WASP applications called from WASP_CORE/wasp_init.php



Tags:

author:  brian.fioca@pangomedia.com
since:  0.9


[ Top ]


Class Methods


method __errorHandler [line 40]

void __errorHandler( errno $errno, errstr $errstr, errfile $errfile, the $errline)

Handles all errors encountered by the application. Warnings are printed out to debug, and errors are thrown as exceptions to be handled by the exception handler below.



Tags:

access:  public


Parameters:

errno   $errno   the number of the error
errstr   $errstr   the error message
errfile   $errfile   the file the error came from
the   $errline   line in the file the error came from

[ Top ]

method __exceptionHandler [line 71]

void __exceptionHandler( oException $oException)

Handles all exceptions thrown by the application or framework.

Exceptions are the recommended way to handle errors in WASP. Exceptions generate a PSOD, log an error, and send an email.




Tags:

access:  public


Parameters:

oException   $oException   the exception to be handled

[ Top ]


Documentation generated on Sun, 27 Nov 2005 13:16:00 -0500 by phpDocumentor 1.3.0RC3