#[non_exhaustive]pub enum Error {
Show 20 variants
Io(Error),
ParseInt(ParseIntError),
FromUtf8(FromUtf8Error),
ParseTime(Parse),
Poison(String),
NotImplemented,
Parse(usize, String, String),
ServerVersion(i32, i32, String),
Simple(String),
InvalidArgument(String),
ConnectionFailed,
ConnectionReset,
Cancelled,
Shutdown,
EndOfStream,
UnexpectedResponse(ResponseMessage),
UnexpectedEndOfStream,
Message(i32, String),
AlreadySubscribed,
HistoricalParseError(HistoricalParseError),
}
Expand description
The main error type for IBAPI operations.
This enum is marked #[non_exhaustive]
to allow adding new error variants
in future versions without breaking compatibility.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Io(Error)
I/O error from network operations.
ParseInt(ParseIntError)
Failed to parse an integer from string.
FromUtf8(FromUtf8Error)
Invalid UTF-8 sequence in response data.
ParseTime(Parse)
Failed to parse time/date string.
Poison(String)
Mutex was poisoned by a panic in another thread.
NotImplemented
Feature or method not yet implemented.
Parse(usize, String, String)
Failed to parse a protocol message. Contains: (field_index, field_value, error_description)
ServerVersion(i32, i32, String)
Server version requirement not met. Contains: (required_version, actual_version, feature_name)
Simple(String)
Generic error with custom message.
InvalidArgument(String)
Invalid argument provided to API method.
ConnectionFailed
Failed to establish connection to TWS/Gateway.
ConnectionReset
Connection was reset by TWS/Gateway.
Cancelled
Operation was cancelled by user or system.
Shutdown
Client is shutting down.
EndOfStream
Reached end of data stream.
UnexpectedResponse(ResponseMessage)
Received unexpected message type.
UnexpectedEndOfStream
Stream ended unexpectedly.
Message(i32, String)
Error message from TWS/Gateway. Contains: (error_code, error_message)
AlreadySubscribed
Attempted to create a duplicate subscription.
HistoricalParseError(HistoricalParseError)
Wraps errors parsing historical data parameters.