B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Parser::ParserException Class Reference

Appear when something wrong with message format, e.g. More...

#include <ParserException.h>

+ Inheritance diagram for Parser::ParserException:
+ Collaboration diagram for Parser::ParserException:

Public Types

enum  RejectReason {
  UNEXPECTED_TAG_ON_FIXED_POSITION = -3, INVALID_CHECK_SUM = -2, UNKNOWN_ERROR = -1, INVALID_TAG_NUMBER = 0,
  REQUIRED_TAG_MISSING = 1, UNKNOWN_TAG = 2, UNDEFINED_TAG = 3, TAG_WITHOUT_VALUE = 4,
  OUT_OF_RANGE = 5, INCORRECT_DATA_FORMAT = 6, DECRYPTION_PROBLEM = 7, SIGNATURE_PROBLEM = 8,
  COMPID_PROBLEM = 9, SENDINGTIME_PROBLEM = 10, INVALID_MSGTYPE = 11, XML_VALIDATION_ERROR = 12,
  DUPLICATED_TAG = 13, TAG_OUT_OF_ORDER = 14, RG_FIELDS_OUT_OF_ORDER = 15, INCORRECT_NUMINGROUP = 16,
  UNEXPECTED_SOH = 17, OTHER_ERROR = 99
}
 

Public Member Functions

RejectReason getRejReason () const
 
std::string const & origMsg () const
 
 ParserException ()
 
 ParserException (const std::string &aMsg)
 
 ParserException (ParserException const &innerException, const std::string &contextValues)
 
 ParserException (RejectReason reason, const std::string &aMsg)
 
 ParserException (const std::string &aMsg, int refSeqNum)
 
 ParserException (int refSeqNum, int refTagID, const std::string &refMsgType)
 
 ParserException (const std::string &aMsg, int refSeqNum, int refTagID, const std::string &refMsgType)
 
 ParserException (RejectReason reason, const std::string &aMsg, int refSeqNum, int refTagID, const std::string &refMsgType)
 
 ParserException (ParserException const &src, int refSeqNum, int refTagID, const std::string &refMsgType, std::string const &contextValues)
 Used to add more information about exception. More...
 
const std::string & refMsgType () const
 
int refSeqNum () const
 
int refTagID () const
 
virtual void rethrow (int refSeqNum, int refTagID, const std::string &refMsgType, std::string const &contextValues) const
 
virtual ~ParserException () throw ()
 
- Public Member Functions inherited from Parser::FixProtocolException
 FixProtocolException ()
 
 FixProtocolException (const std::string &aMsg)
 
- Public Member Functions inherited from Utils::Exception
 Exception ()
 Constructor. More...
 
 Exception (const std::string &aReason)
 Constructor. More...
 
std::string const & reason () const throw ()
 Returns the reason for this exception. More...
 
virtual const char * what () const B2B_OVERRIDE throw ()
 Returns the reason for this exception. More...
 
virtual ~Exception () throw ()
 Destructor. More...
 

Static Public Member Functions

static std::string msgFormatter (const std::string &text, int refSeqNum, int refTagID, const std::string &refMsgType)
 
static std::string msgFormatter (const std::string &text, const Engine::FIXFieldValue &refSeqNum, int refTagID, const std::string &refMsgType)
 

Protected Attributes

std::string m_origMsg
 
RejectReason m_rejReason
 
- Protected Attributes inherited from Utils::Exception
std::string m_reason
 std::string that describes raised exception More...
 

Detailed Description

Appear when something wrong with message format, e.g.

message format does not correspond to the protocol defines.

Member Enumeration Documentation

Enumerator
UNEXPECTED_TAG_ON_FIXED_POSITION 
INVALID_CHECK_SUM 
UNKNOWN_ERROR 
INVALID_TAG_NUMBER 
REQUIRED_TAG_MISSING 
UNKNOWN_TAG 
UNDEFINED_TAG 
TAG_WITHOUT_VALUE 
OUT_OF_RANGE 
INCORRECT_DATA_FORMAT 
DECRYPTION_PROBLEM 
SIGNATURE_PROBLEM 
COMPID_PROBLEM 
SENDINGTIME_PROBLEM 
INVALID_MSGTYPE 
XML_VALIDATION_ERROR 
DUPLICATED_TAG 
TAG_OUT_OF_ORDER 
RG_FIELDS_OUT_OF_ORDER 
INCORRECT_NUMINGROUP 
UNEXPECTED_SOH 
OTHER_ERROR 

Constructor & Destructor Documentation

Parser::ParserException::ParserException ( )
inline

Referenced by rethrow().

Parser::ParserException::ParserException ( const std::string &  aMsg)
inline
Parser::ParserException::ParserException ( ParserException const &  innerException,
const std::string &  contextValues 
)
inline
Parser::ParserException::ParserException ( RejectReason  reason,
const std::string &  aMsg 
)
inline
Parser::ParserException::ParserException ( const std::string &  aMsg,
int  refSeqNum 
)
inline
Parser::ParserException::ParserException ( int  refSeqNum,
int  refTagID,
const std::string &  refMsgType 
)
inline
Parser::ParserException::ParserException ( const std::string &  aMsg,
int  refSeqNum,
int  refTagID,
const std::string &  refMsgType 
)
inline
Parser::ParserException::ParserException ( RejectReason  reason,
const std::string &  aMsg,
int  refSeqNum,
int  refTagID,
const std::string &  refMsgType 
)
inline
Parser::ParserException::ParserException ( ParserException const &  src,
int  refSeqNum,
int  refTagID,
const std::string &  refMsgType,
std::string const &  contextValues 
)
inline

Used to add more information about exception.

virtual Parser::ParserException::~ParserException ( )
throw (
)
inlinevirtual

Member Function Documentation

RejectReason Parser::ParserException::getRejReason ( ) const
inline

References m_rejReason.

static std::string Parser::ParserException::msgFormatter ( const std::string &  text,
int  refSeqNum,
int  refTagID,
const std::string &  refMsgType 
)
static
static std::string Parser::ParserException::msgFormatter ( const std::string &  text,
const Engine::FIXFieldValue refSeqNum,
int  refTagID,
const std::string &  refMsgType 
)
static
std::string const& Parser::ParserException::origMsg ( ) const
inline

References m_origMsg.

const std::string& Parser::ParserException::refMsgType ( ) const
inline
int Parser::ParserException::refSeqNum ( ) const
inline
int Parser::ParserException::refTagID ( ) const
inline
virtual void Parser::ParserException::rethrow ( int  refSeqNum,
int  refTagID,
const std::string &  refMsgType,
std::string const &  contextValues 
) const
inlinevirtual

Member Data Documentation

std::string Parser::ParserException::m_origMsg
protected
RejectReason Parser::ParserException::m_rejReason
protected

Referenced by getRejReason().