fix8
version 1.4.0
Open Source C++ FIX Framework
|
Base exception class. More...
#include <f8exception.hpp>
Public Member Functions | |
f8Exception (bool force_logoff=false) | |
f8Exception (const std::string &msg, bool force_logoff=false) | |
f8Exception (const char *msg, bool force_logoff=false) | |
template<typename T > | |
f8Exception (const std::string &msg, const T &val, bool force_logoff=false) | |
virtual | ~f8Exception () throw () |
Dtor. More... | |
const char * | what () const throw () |
bool | force_logoff () const |
Protected Member Functions | |
template<typename T > | |
void | format (const std::string &msg, const T what) |
template<typename T , typename S > | |
void | format (const std::string &msg, const T what, const std::string &msg2, const S what2) |
Private Attributes | |
std::string | _reason |
bool | _force_logoff |
Base exception class.
Definition at line 49 of file f8exception.hpp.
|
inline |
Ctor.
force_logoff | if true, logoff when thrown |
Definition at line 57 of file f8exception.hpp.
|
inline |
Ctor.
msg | message associated with this exception |
force_logoff | if true, logoff when thrown |
Definition at line 62 of file f8exception.hpp.
|
inline |
Ctor.
msg | message associated with this exception |
force_logoff | if true, logoff when thrown |
Definition at line 68 of file f8exception.hpp.
|
inline |
Ctor.
T | type of value to format |
msg | message associated with this exception |
val | value to display with this exception |
force_logoff | if true, logoff when thrown |
Definition at line 77 of file f8exception.hpp.
References format().
|
inlinevirtual |
|
inline |
Get the force logoff setting.
Definition at line 89 of file f8exception.hpp.
References _force_logoff.
Referenced by FIX8::Session::process().
|
inlineprotected |
Format a message to associate with this exception.
T | type of value to format |
msg | message associated with this exception |
what | to display with this exception |
Definition at line 97 of file f8exception.hpp.
References what().
Referenced by FIX8::BadCheckSum::BadCheckSum(), FIX8::BadCompidId::BadCompidId(), FIX8::BadSendingTime::BadSendingTime(), FIX8::ConfigurationError::ConfigurationError(), FIX8::DuplicateField::DuplicateField(), FIX8::f8_threadException::f8_threadException(), f8Exception(), FIX8::IllegalMessage::IllegalMessage(), FIX8::InvalidBodyLength::InvalidBodyLength(), FIX8::InvalidConfiguration::InvalidConfiguration(), FIX8::InvalidDomainValue< T >::InvalidDomainValue(), FIX8::InvalidField::InvalidField(), FIX8::InvalidMessage::InvalidMessage(), FIX8::InvalidMetadata< T >::InvalidMetadata(), FIX8::InvalidMsgSequence::InvalidMsgSequence(), FIX8::InvalidRepeatingGroup::InvalidRepeatingGroup(), FIX8::InvalidVersion::InvalidVersion(), FIX8::LogfileException::LogfileException(), FIX8::MissingMandatoryField::MissingMandatoryField(), FIX8::MissingMessageComponent::MissingMessageComponent(), FIX8::MissingRepeatingGroupField::MissingRepeatingGroupField(), FIX8::MsgSequenceTooLow::MsgSequenceTooLow(), FIX8::PeerResetConnection::PeerResetConnection(), FIX8::UnknownField::UnknownField(), and FIX8::XMLError::XMLError().
|
inlineprotected |
Format a message to associate with this exception.
T | type of value to format |
S | type of 2nd value to format |
msg | message associated with this exception |
what | to display with this exception |
msg2 | message associated with this exception |
what2 | to display with this exception |
Definition at line 112 of file f8exception.hpp.
|
inline |
Get message associated with this exception.
Definition at line 85 of file f8exception.hpp.
Referenced by FIX8::FIXReader::execute(), FIX8::FIXWriter::execute(), format(), main(), FIX8::ReliableClientSession< T >::operator()(), FIX8::Session::process(), FIX8::Session::send_process(), and FIX8::SessionInstance< T >::~SessionInstance().
|
private |
Definition at line 52 of file f8exception.hpp.
Referenced by force_logoff().
|
private |
Definition at line 51 of file f8exception.hpp.