order_book 0.3.0
Exchange feed order book that prints the best bid and offer
Loading...
Searching...
No Matches
order_book::ItchError Struct Reference

Why decode_itch() rejected a message. More...

#include <itch.hpp>

Public Types

enum class  Reason : std::uint8_t { Empty , UnknownType , WrongSize , InvalidSide }
 The rule the message broke. More...

Public Attributes

Reason reason
 The rule broken.
char type
 The message type, or the offending byte for UnknownType and InvalidSide.
std::size_t size
 The message's size, for WrongSize.
std::uint64_t value

Friends

bool operator== (const ItchError &, const ItchError &)=default
 Memberwise equality.

Detailed Description

Why decode_itch() rejected a message.

Definition at line 43 of file itch.hpp.

Member Enumeration Documentation

◆ Reason

enum class order_book::ItchError::Reason : std::uint8_t
strong

The rule the message broke.

Enumerator
Empty 

No bytes at all.

UnknownType 

A type byte outside the specification.

WrongSize 

A size other than the specification's for its type.

InvalidSide 

A side other than B or S.

Definition at line 45 of file itch.hpp.

Member Data Documentation

◆ reason

Reason order_book::ItchError::reason

The rule broken.

Definition at line 51 of file itch.hpp.

◆ size

std::size_t order_book::ItchError::size

The message's size, for WrongSize.

Definition at line 53 of file itch.hpp.

◆ type

char order_book::ItchError::type

The message type, or the offending byte for UnknownType and InvalidSide.

Definition at line 52 of file itch.hpp.

◆ value

std::uint64_t order_book::ItchError::value

The expected size for WrongSize

Definition at line 54 of file itch.hpp.


The documentation for this struct was generated from the following file: