pub enum Error {
LatitudeError(LatitudeErrorCodes),
RunError(RunErrorCodes),
ApiError(ApiErrorCodes),
ChainCompileError(RunErrorDetails),
DatabaseError(DbErrorRef),
ResponseFormatError(String),
HttpError(Error),
SerializationError(Error),
ConfigError(String),
Other(String),
}
Expand description
The main error type for the Latitude API client, encapsulating all possible error scenarios.
Variants§
LatitudeError(LatitudeErrorCodes)
Error originating from the Latitude API with specific error codes.
RunError(RunErrorCodes)
Error encountered during document execution (Run) with specific error codes.
ApiError(ApiErrorCodes)
General API error, indicating issues unrelated to document execution or Latitude-specific codes.
ChainCompileError(RunErrorDetails)
Specific error related to chain compilation with additional details.
DatabaseError(DbErrorRef)
Error referencing a database entity, containing entity UUID and type information.
ResponseFormatError(String)
Error indicating an unexpected response format from the API.
HttpError(Error)
HTTP request-related error, mapped directly from reqwest::Error
.
SerializationError(Error)
Serialization or deserialization error, mapped directly from serde_json::Error
.
ConfigError(String)
Configuration error, such as missing or invalid configuration values.
Other(String)
A catch-all error for miscellaneous cases.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.