Smutty_Object
|
+--Smutty_Error
public class Smutty_Error
extends Smutty_Object
| Constructor Summary | |
|---|---|
constructor |
|
| Method Summary | |
|---|---|
| nothing | addWarning(String message, String wikiHelp) adds a warning message |
| nothing | enables the use of smarty templates for error reporting purposes |
| nothing | errorHandler(int errno, String errstr, String errfile, int errline, int errcon) handles an error from php. |
| static nothing | fatal(String message, String wikiHelp, int code) call this to raise a fatal error |
| static integer | returns the current level of error reporting |
| static Smutty_Error | returns the singleton instance for this object. |
| array | returns an array of warning messages that have been generated |
| boolean | returns a boolean indicating if templates will be used when reporting an error |
| static nothing | setErrorReporting(int type) sets the level of error reporting |
| private nothing | showStandard(String message, String wikiHelp) shows an error message with standard output |
| private nothing | showTemplate(String message, String wikiHelp) shows an error message using smarty templates |
| static nothing | warning(String message, String wikiHelp) this method is used to indicate that something has gone wrong, but that it's not serious. |
public Smutty_Error()
constructor
public nothing addWarning(String message, String wikiHelp)
adds a warning message
public nothing enableTemplates()
enables the use of smarty templates for error reporting purposes
public nothing errorHandler(int errno, String errstr, String errfile, int errline, int errcon)
handles an error from php.
public static nothing fatal(String message, String wikiHelp, int code)
call this to raise a fatal error
public static integer getErrorReporting()
returns the current level of error reporting
public static Smutty_Error getInstance()
returns the singleton instance for this object. this singleton can then be used to set global error reporting options.
public array getWarnings()
returns an array of warning messages that have been generated
public boolean isUsingTemplates()
returns a boolean indicating if templates will be used when reporting an error
public static nothing setErrorReporting(int type)
sets the level of error reporting
private nothing showStandard(String message, String wikiHelp)
shows an error message with standard output
private nothing showTemplate(String message, String wikiHelp)
shows an error message using smarty templates
public static nothing warning(String message, String wikiHelp)
this method is used to indicate that something has gone wrong, but that it's not serious. just a warning. these warning messages can then be reached by the getWarnings() method
this class handles all exceptions and warnings generated by smutty.
/