Welcompose
[ class tree: Welcompose ] [ index: Welcompose ] [ all elements ]

Procedural File: error.class.php

Source Location: /base_classes/error.class.php





Page Details:

Project: Welcompose File: error.class.php

Copyright (c) 2008 creatics

Project owner: creatics, Olaf Gleba 50939 Köln, Germany http://www.creatics.de

This file is licensed under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE v3 http://www.opensource.org/licenses/agpl-v3.html

$Id: error.class.php 51 2007-02-21 21:22:54Z andreas $




Tags:

author:  Andreas Ahlenstorf
copyright:  2008 creatics, Olaf Gleba
license:  GNU AFFERO GENERAL PUBLIC LICENSE v3


Includes:

require_once(Log.php) [line 26]





BASE_ERROR_DEBUG [line 32]

BASE_ERROR_DEBUG = PEAR_LOG_DEBUG

[ Top ]



BASE_ERROR_ERROR [line 29]

BASE_ERROR_ERROR = PEAR_LOG_ERR

[ Top ]



BASE_ERROR_NOTICE [line 31]

BASE_ERROR_NOTICE = PEAR_LOG_NOTICE

[ Top ]



BASE_ERROR_WARNING [line 30]

BASE_ERROR_WARNING = PEAR_LOG_WARNING

[ Top ]




Base_Error [line 39]

object Base_Error( $handler, $name, $level)

Singleton for Base_Error.



Parameters

   $handler  
   $name  
   $level  
[ Top ]



trigger_user_error [line 268]

void trigger_user_error( int $code, string $message, string $file, int $line)

Triggers user error. Takes the error code/level as first argument, the error message as second argument and the file and line where the error occurred (use the constants __FILE__ and __LINE__) as third and fourth argument.

Valid values for the error code/level are BASE_ERROR_ERROR, BASE_ERROR_WARNING, BASE_ERROR_INFO and BASE_ERROR_DEBUG.




Parameters

int   $code   Error code/level
string   $message   Error message
string   $file   File where the error occurred
int   $line   Line number where the error occurred
[ Top ]



Documentation generated on Sun, 08 Jan 2012 17:51:46 +0100 by phpDocumentor 1.4.3