>> YANA 4 PHP Framework >> Docs For Class ErrorUtility

Class ErrorUtility

Description

«utility» static class for error handling and debugging

This class provides static methods to set the current error reporting level, set the way how errors are reported - wether as text messages on the screen or (hidden from visitors) in log files - and to format and output reported errors.

The center of interest for a common audience should be how to enable or disable error reporting for debug purposes.

  • name: ErrorUtility
  • access: public

Located in /includes/class_errorutility.php

Utility
   |
   --ErrorUtility
Method Summary

Methods

Set error reporting level
void setErrorReporting (
integer|string $errorLevel
)
List of parameters:
Name Type Description
$errorLevel integer|string examples: YANA_ERROR_OFF, YANA_ERROR_LOG, YANA_ERROR_ON or E_ALL, E_ALL & ~E_NOTICE
Description:

You may use the following constants:

  1. YANA_ERROR_ON = catch all errors and print to screen
  2. YANA_ERROR_OFF = do not report any errors or messages
  3. YANA_ERROR_LOG = write errors and messages to a log file

  • uses: ErrorUtility::setErrorReporting(YANA_ERROR_OFF)
  • name: ErrorUtility::setErrorReporting()
  • access: public
inherited from base classes

Inherited From Utility

Documentation generated on Sun, 11 Mar 2007 15:02:29 +0100 by phpDocumentor 1.3.1

yana author: Thomas MeyerHomepage: www.yanaframework.net