Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

JErrorHandler Class Reference

Inheritance diagram for JErrorHandler:

Inheritance graph
[legend]
Collaboration diagram for JErrorHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JErrorHandler ()
GetInstance ()
 IsError ($error)
 PushError ($error)
 HasErrors ()
 PopError ()

Public Attributes

 $errorstack
 The stack of errors.


Detailed Description

Class that handles the error system. Currently, it just stores the last error that has happened in the system.

Definition at line 12 of file JErrorHandler.class.php.


Constructor & Destructor Documentation

JErrorHandler::JErrorHandler  ) 
 

The constructor.

Definition at line 19 of file JErrorHandler.class.php.

Referenced by GetInstance().


Member Function Documentation

& JErrorHandler::GetInstance  ) 
 

Gets an instance of the error handler.

Returns:
JErrorHandler

Definition at line 28 of file JErrorHandler.class.php.

References JErrorHandler().

Referenced by JSystem::GetLastError(), JBaseObject::GetLastError(), and JBaseObject::RaiseError().

JErrorHandler::HasErrors  ) 
 

Checks if there is any error in the stack.

Returns:
boolean

Definition at line 74 of file JErrorHandler.class.php.

JErrorHandler::IsError error  ) 
 

Checks if the object is a JError object.

Parameters:
error An object.
Returns:
boolean. Indicating whether the object was an error or not.

Definition at line 45 of file JErrorHandler.class.php.

Referenced by JSystem::IsError(), and JBaseObject::RaiseError().

JErrorHandler::PopError  ) 
 

Pops an error from the stack.

Returns:
JError

Definition at line 83 of file JErrorHandler.class.php.

JErrorHandler::PushError error  ) 
 

Adds a new error in the errors stack.

Parameters:
error JError
Returns:
JError

Definition at line 63 of file JErrorHandler.class.php.


Member Data Documentation

JErrorHandler::$errorstack
 

The stack of errors.

Definition at line 14 of file JErrorHandler.class.php.


The documentation for this class was generated from the following file:
Generated on Wed Nov 19 20:29:40 2003 for James by doxygen 1.3.4