Class ParserException
Parser exception.
Inheritance
ParserException
Implements
Inherited Members
Namespace: OnixS.Fix.Exceptions
Assembly: OnixS.Fix.Engine.dll
Syntax
public class ParserException : Exception, ISerializable
Constructors
ParserException(string, int)
Constructor.
Declaration
public ParserException(string reason, int refTag)
Parameters
| Type | Name | Description |
|---|---|---|
| string | reason | |
| int | refTag |
ParserException(string, int, RejectReason)
Constructor.
Declaration
public ParserException(string reason, int refTag, ParserException.RejectReason rejectReason)
Parameters
| Type | Name | Description |
|---|---|---|
| string | reason | |
| int | refTag | |
| ParserException.RejectReason | rejectReason |
ParserException(string, int, RejectReason, IMessage)
Constructor.
Declaration
public ParserException(string reason, int refTag, ParserException.RejectReason rejectReason, IMessage msg)
Parameters
| Type | Name | Description |
|---|---|---|
| string | reason | |
| int | refTag | |
| ParserException.RejectReason | rejectReason | |
| IMessage | msg |
ParserException(string, int, RejectReason, int, string)
Constructor.
Declaration
public ParserException(string reason, int refTag, ParserException.RejectReason rejectReason, int refSeqNum, string refMsgType)
Parameters
| Type | Name | Description |
|---|---|---|
| string | reason | |
| int | refTag | |
| ParserException.RejectReason | rejectReason | |
| int | refSeqNum | |
| string | refMsgType |
ParserException(string, int, RejectReason, ReadOnlySpan<byte>)
Constructor.
Declaration
public ParserException(string reason, int refTag, ParserException.RejectReason rejectReason, ReadOnlySpan<byte> rawMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| string | reason | |
| int | refTag | |
| ParserException.RejectReason | rejectReason | |
| ReadOnlySpan<byte> | rawMessage |
ParserException(string, int, int, int, RejectReason, IMessage)
Constructor.
Declaration
public ParserException(string reason, int nInstancesTag, int instance, int refTag, ParserException.RejectReason rejectReason, IMessage msg)
Parameters
| Type | Name | Description |
|---|---|---|
| string | reason | |
| int | nInstancesTag | |
| int | instance | |
| int | refTag | |
| ParserException.RejectReason | rejectReason | |
| IMessage | msg |
ParserException(string, int, int, int, IMessage)
Constructor.
Declaration
public ParserException(string reason, int nInstancesTag, int instance, int refTag, IMessage msg)
Parameters
| Type | Name | Description |
|---|---|---|
| string | reason | |
| int | nInstancesTag | |
| int | instance | |
| int | refTag | |
| IMessage | msg |
ParserException(string, ReadOnlySpan<byte>, Exception)
Constructor.
Declaration
public ParserException(string reason, ReadOnlySpan<byte> rawMessage, Exception ex)
Parameters
| Type | Name | Description |
|---|---|---|
| string | reason | |
| ReadOnlySpan<byte> | rawMessage | |
| Exception | ex |
Fields
UndefinedTagId
Undefined tag id.
Declaration
protected const int UndefinedTagId = -1
Field Value
| Type | Description |
|---|---|
| int |
message
Message.
Declaration
protected string message
Field Value
| Type | Description |
|---|---|
| string |
Properties
Reason
Reason.
Declaration
public ParserException.RejectReason Reason { get; }
Property Value
| Type | Description |
|---|---|
| ParserException.RejectReason |
RefMsgType
Reference message type.
Declaration
public string RefMsgType { get; }
Property Value
| Type | Description |
|---|---|
| string |
RefSeqNum
Reference sequence number.
Declaration
public int RefSeqNum { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
RefTagId
Reference tag id.
Declaration
public int RefTagId { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
FindMsgType(ReadOnlySpan<byte>)
Find message type.
Declaration
public static string FindMsgType(ReadOnlySpan<byte> rawMsg)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | rawMsg |
Returns
| Type | Description |
|---|---|
| string |