fix_codec_rs/error.rs
1#[derive(Debug)]
2pub enum FixError {
3 /// A tag field contained non-digit bytes or was otherwise malformed.
4 InvalidTag,
5 /// A value field contained bytes that are not valid UTF-8.
6 InvalidUtf8,
7 /// A numeric value field contained non-digit bytes.
8 InvalidValue,
9 /// The buffer contains a partial FIX field; more bytes are needed (TCP framing).
10 IncompleteMessage,
11 /// An error occurred during message encoding.
12 EncodeError,
13 /// An error occurred during message decoding.
14 DecodeError,
15 /// Tag 9 (BodyLength) is absent, unparseable, or does not match the computed byte count.
16 InvalidBodyLength,
17 /// Tag 10 (CheckSum) is absent, unparseable, or does not match the computed checksum.
18 InvalidCheckSum,
19}