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

OSException Class Reference

#include <LoggingExceptions.h>

Inheritance diagram for OSException:

Exception List of all members.

Public Member Functions

 OSException (const std::string &source, int line_number, const std::string &method, int code, const std::string &exception)
 OSException (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

Exceptions caused by system errors.

This class represents error conditions caused by failing system calls. The error message is augmented with the system error message obtained by calling strerror().


Constructor & Destructor Documentation

OSException::OSException 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.

OSException::OSException 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 Wed Jun 27 13:43:06 2007 for Glite LB Client: CPP - Interface by doxygen 1.3.5