Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members

Exception Class Reference

#include <LoggingExceptions.h>

Inheritance diagram for Exception:

LoggingException OSException List of all members.

Public Member Functions

 Exception (const std::string &source, int line_number, const std::string &method, int code, const std::string &exception)
 Exception (const std::string &source, int line_number, const std::string &method, int code, const std::string &exception, const glite::wmsutils::exception::Exception &exc)

Detailed Description

Base class for all exceptions thrown by the L&B C++ classes.

This class serves as a common base for all exceptions thrown by the L&B C++ API classes. In case when the exception is constructed from another exception (creating chained exception list), the error message is created by concatenating the error message of the original exception and the new error message. All the other functionality (printing error message, logging it, printing stack trace) is inherited from the base class glite::wmsutils::exception::Exception.


Constructor & Destructor Documentation

Exception::Exception const std::string &  source,
int  line_number,
const std::string &  method,
int  code,
const std::string &  exception
[inline]
 

Constructor for mandatory fields.

Updates all the mandatory fields and names the exception.

Parameters:
[in] source Source filename where the exception was raised.
[in] line_number Line in the source that caused the exception.
[in] method Name of the method that raised the exception.
[in] code Error code giving the reason for exception.
[in] exception Error message describing the exception.

Exception::Exception const std::string &  source,
int  line_number,
const std::string &  method,
int  code,
const std::string &  exception,
const glite::wmsutils::exception::Exception &  exc
[inline]
 

Constructor for mandatory fields and the exception chain.

Updates all the mandatory fields, names the exception and adds the original exception's error message to the current one.

Parameters:
[in] source Source filename where the exception was raised.
[in] line_number Line in the source that caused the exception.
[in] method Name of the method that raised the exception.
[in] code Error code giving the reason for exception.
[in] exception Error message describing the exception.
[in] exc Originally raised exception.


The documentation for this class was generated from the following file:
Generated on Fri Aug 20 13:06:42 2010 for Glite LB Client: CPP - Interface by  doxygen 1.3.9.1