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

LOW_device::familyMismatch_error Class Reference

Exception class indicating a mismatch of expected/required family code. More...

#include <LOW_device.h>

Inheritance diagram for LOW_device::familyMismatch_error:

Inheritance graph
[legend]
Collaboration diagram for LOW_device::familyMismatch_error:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 familyMismatch_error (const std::string inMsg, const std::string inFile, const int inLine)
 familyMismatch_error (const int inErrNum, const std::string inMsg, const std::string inFile, const int inLine)
virtual void logException (const std::string inPrefix="")
 Log the exception via LOW_helper_msglog::printError().


Static Public Member Functions

void setLogOnCreation (const bool inLogOnCreation)
 Set wether exceptions should be logged automatically when created.

const bool getLogOnCreation ()
 Get wether exceptions are logged automatically when created.


Public Attributes

const int errNum
 OS error number.

const std::string message
 Descriptive message.

const std::string file
 File from which exception was thrown.

const int line
 Line number where exception was thrown.


Static Protected Attributes

LOW_thread_rwlock__staticSyncRwlockSingleton = 0
LOW_platformMiscFactory::threadIdent_t __writeLockHolder = 0
bool logOnCreation = false
 Indicates wether exception should be logged automatically when the are created.


Detailed Description

Exception class indicating a mismatch of expected/required family code.

Definition at line 54 of file LOW_device.h.


Constructor & Destructor Documentation

LOW_device::familyMismatch_error::familyMismatch_error const std::string  inMsg,
const std::string  inFile,
const int  inLine
[inline]
 

Definition at line 54 of file LOW_device.h.

LOW_device::familyMismatch_error::familyMismatch_error const int  inErrNum,
const std::string  inMsg,
const std::string  inFile,
const int  inLine
[inline]
 

Definition at line 54 of file LOW_device.h.


Member Function Documentation

const bool LOW_exception::getLogOnCreation  )  [static, inherited]
 

Get wether exceptions are logged automatically when created.

Returns:
Wether exceptions are logged automatically.

Definition at line 89 of file LOW_exception.cpp.

References __LOW_SYNCHRONIZE_STATIC_READ__, and LOW_exception::logOnCreation.

void LOW_exception::logException const std::string  inPrefix = ""  )  [virtual, inherited]
 

Log the exception via LOW_helper_msglog::printError().

Parameters:
inPrefix Prefix to prepend to the log message.

Definition at line 102 of file LOW_exception.cpp.

References LOW_exception::errNum, LOW_exception::file, LOW_exception::line, LOW_exception::message, LOW_helper_msglog::printError(), and LOW_helper_msglog::printPerror().

Referenced by LOW_exception::LOW_exception().

void LOW_exception::setLogOnCreation const bool  inLogOnCreation  )  [static, inherited]
 

Set wether exceptions should be logged automatically when created.

Parameters:
inLogOnCreation Wether exceptions should be logged automatically.

Definition at line 81 of file LOW_exception.cpp.

References __LOW_SYNCHRONIZE_STATIC_WRITE__, and LOW_exception::logOnCreation.


Member Data Documentation

LOW_thread_rwlock * LOW_exception::__staticSyncRwlockSingleton = 0 [static, protected, inherited]
 

Definition at line 32 of file LOW_exception.cpp.

LOW_platformMiscFactory::threadIdent_t LOW_exception::__writeLockHolder = 0 [static, protected, inherited]
 

Definition at line 32 of file LOW_exception.cpp.

const int LOW_exception::errNum [inherited]
 

OS error number.

Definition at line 56 of file LOW_exception.h.

Referenced by LOW_exception::logException().

const std::string LOW_exception::file [inherited]
 

File from which exception was thrown.

Definition at line 58 of file LOW_exception.h.

Referenced by LOW_exception::logException().

const int LOW_exception::line [inherited]
 

Line number where exception was thrown.

Definition at line 59 of file LOW_exception.h.

Referenced by LOW_exception::logException().

bool LOW_exception::logOnCreation = false [static, protected, inherited]
 

Indicates wether exception should be logged automatically when the are created.

Definition at line 34 of file LOW_exception.cpp.

Referenced by LOW_exception::getLogOnCreation(), LOW_exception::LOW_exception(), and LOW_exception::setLogOnCreation().

const std::string LOW_exception::message [inherited]
 

Descriptive message.

Definition at line 57 of file LOW_exception.h.

Referenced by LOW_exception::logException().


The documentation for this class was generated from the following file:
Generated on Tue Feb 3 11:30:54 2004 for OneWireLibrary++ by doxygen 1.3.2