[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/inc/ -> class_error.php (summary)

MyBB 1.6 Copyright 2010 MyBB Group, All Rights Reserved

File Size: 611 lines (17 kb)
Included or required: 7 times
Referenced: 0 times
Includes or requires: 3 files
 inc/class_templates.php
 inc/functions_task.php
 inc/class_parser.php

Defines 1 class

errorHandler:: (8 methods):
  __construct()
  error()
  show_warnings()
  trigger()
  log_error()
  email_error()
  output_error()
  generate_backtrace()


Class: errorHandler  - X-Ref

__construct()   X-Ref
Initializes the error handler


error($type, $message, $file=null, $line=0)   X-Ref
Parses a error for processing.

param: string The error type (i.e. E_ERROR, E_FATAL)
param: string The error message
param: string The error file
param: integer The error line
return: boolean True if parsing was a success, otherwise assume a error

show_warnings()   X-Ref
Returns all the warnings

return: string The warnings

trigger($message="", $type=E_USER_ERROR)   X-Ref
Triggers a user created error
Example: $error_handler->trigger("Some Warning", E_USER_ERROR);

param: string Message
param: string Type

log_error($type, $message, $file, $line)   X-Ref
Logs the error in the specified error log file.

param: string Warning type
param: string Warning message
param: string Warning file
param: integer Warning line

email_error($type, $message, $file, $line)   X-Ref
Emails the error in the specified error log file.

param: string Warning type
param: string Warning message
param: string Warning file
param: integer Warning line

output_error($type, $message, $file, $line)   X-Ref
No description

generate_backtrace()   X-Ref
Generates a backtrace if the server supports it.

return: string The generated backtrace



Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1