Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

IpcException.cpp

00001 #include "IpcException.h"
00002 
00003 namespace Sct {
00004 
00005 //IpcException methods
00006 IpcException::IpcException(const ilu_Exception& error, const string& msg, const string& file, int line) throw() : iluMsg(error) {
00007     initialize("IPC_EXCEPTION", "Sct::IpcException", msg, 0, file, line);
00008 }
00009 
00010 IpcException::IpcException(const ilu_Exception& error, Throwable& cause, const string& file, int line) throw() : iluMsg(error) {
00011     initialize("IPC_EXCEPTION", "Sct::IpcException", "", &cause, file, line);
00012 }
00013 
00014 IpcException::IpcException(const ilu_Exception& error, const string& msg, Throwable& cause, const string& file, int line) throw() : iluMsg(error) {
00015     initialize("IPC_EXCEPTION", "Sct::IpcException", msg, &cause, file, line);
00016 }
00017 
00018    
00019 const ilu_Exception& IpcException::getIluException() const throw() {
00020     return iluMsg;
00021 }
00022 
00023 shared_ptr<Throwable> IpcException::clone() const throw() {
00024     return shared_ptr<Throwable>(new IpcException(*this));
00025 }
00026 
00027 string IpcException::getMessage() const throw() {
00028     std::ostringstream output;
00029     output << msg << " [Return code = " << iluMsg << "]";
00030     return output.str();
00031 }
00032 
00033 
00034 }

Generated on Thu Jul 15 09:50:47 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5