#[non_exhaustive]pub enum FixError {
Show 14 variants
Garbled(&'static str),
Checksum {
computed: u8,
found: u8,
},
TooLong {
length: usize,
limit: usize,
},
MissingField {
msg_type: String,
tag: u32,
},
InvalidField {
msg_type: String,
tag: u32,
},
UnsupportedMessage(String),
Unsendable(String),
LogonRefused {
text: Option<String>,
},
UnexpectedMessage(String),
Rejected {
ref_seq_num: u64,
tag: Option<u32>,
reason: Option<u32>,
text: Option<String>,
},
BusinessRejected {
ref_id: Option<String>,
reason: Option<u32>,
text: Option<String>,
},
MarketDataRejected {
reason: Option<u32>,
text: Option<String>,
},
OrderRejected {
cl_ord_id: Option<String>,
reason: Option<u32>,
text: Option<String>,
},
CancelRejected {
cl_ord_id: String,
orig_cl_ord_id: Option<String>,
change: RefusedChange,
text: Option<String>,
},
}Expand description
Reasons a FIX message is rejected by this library.
No variant holds the value of a field, so no credential of a logon can reach a log through an error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Garbled(&'static str)
The bytes are not a FIX message.
Checksum
The checksum of a message does not match its bytes.
Fields
TooLong
The body of a message is longer than the limit.
MissingField
A required field is absent.
InvalidField
A field holds a value of the wrong form.
UnsupportedMessage(String)
The type of the message is not known to this library.
Unsendable(String)
The message is of a type this library never sends, because the server refuses it.
LogonRefused
The server answered the logon with a logout.
UnexpectedMessage(String)
A message of this type arrived where another was due.
Rejected
The server rejected a message at the session level.
Fields
BusinessRejected
The server refused a request at the application level.
Fields
MarketDataRejected
The server refused a subscription to prices.
Fields
OrderRejected
The server took an order and then refused, cancelled or expired it.
Fields
CancelRejected
The server refused to cancel or to replace an order, which stays as it was.
Trait Implementations§
impl Eq for FixError
Source§impl Error for FixError
impl Error for FixError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()