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:
Includes:
BASE_ERROR_DEBUG [line 32]
BASE_ERROR_ERROR [line 29]
BASE_ERROR_NOTICE [line 31]
BASE_ERROR_WARNING [line 30]
Base_Error [line 39]
object Base_Error(
$handler, $name, $level)
|
|
Singleton for Base_Error.
Parameters
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 |
|