pub enum OgmiosError {
Show 18 variants
WebSocket(String),
HttpHandshake(String),
Http(Error),
Json(Error),
ServerNotReady {
synchronization: f64,
minimum: f64,
},
ConnectionClosed,
SocketNotOpen {
state: String,
},
InvalidResponse {
message: String,
},
Timeout {
timeout_ms: u64,
},
IntersectionNotFound {
tip: Option<String>,
},
SubmissionError(String),
EvaluationError(String),
AcquisitionError(String),
QueryError(String),
UrlParse(ParseError),
Io(Error),
ChannelSend(String),
ChannelRecv,
}Expand description
Main error type for the Ogmios client.
Variants§
WebSocket(String)
WebSocket connection error
HttpHandshake(String)
HTTP handshake error
Http(Error)
HTTP request error (for health checks)
Json(Error)
JSON serialization/deserialization error
ServerNotReady
Server not ready error
Fields
ConnectionClosed
Connection closed unexpectedly
SocketNotOpen
Socket not open
InvalidResponse
Invalid response from server
Timeout
Request timeout
IntersectionNotFound
Intersection not found during chain sync
Fields
SubmissionError(String)
Transaction submission error
EvaluationError(String)
Transaction evaluation error
AcquisitionError(String)
Ledger state acquisition error
QueryError(String)
Query error
UrlParse(ParseError)
URL parsing error
Io(Error)
Generic I/O error
ChannelSend(String)
Channel send error
ChannelRecv
Channel receive error
Trait Implementations§
Source§impl Debug for OgmiosError
impl Debug for OgmiosError
Source§impl Display for OgmiosError
impl Display for OgmiosError
Source§impl Error for OgmiosError
impl Error for OgmiosError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for OgmiosError
impl From<Error> for OgmiosError
Source§impl From<Error> for OgmiosError
impl From<Error> for OgmiosError
Source§impl From<Error> for OgmiosError
impl From<Error> for OgmiosError
Source§impl From<ParseError> for OgmiosError
impl From<ParseError> for OgmiosError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OgmiosError
impl !UnwindSafe for OgmiosError
impl Freeze for OgmiosError
impl Send for OgmiosError
impl Sync for OgmiosError
impl Unpin for OgmiosError
impl UnsafeUnpin for OgmiosError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more