pub enum Error {
Show 32 variants
IoError(Error),
ConfigError(ConfigError),
JsonError(Error),
HttpError(Error),
MaxRetriesExceeded(u32),
UrlParseError(ParseError),
RpcError(i32, String),
InvalidRpcId(String),
EnvError(VarError),
SemaphoreError(AcquireError),
JoinError(JoinError),
ProgressSendError(SendError<Progress>),
ProgressRecvError(RecvError),
StripPrefixError(StripPrefixError),
ParseIntError(ParseIntError),
InvalidResponse,
NotImplemented,
PartTooLarge,
InvalidFileType(String),
InvalidAnnotationType(String),
UnsupportedFormat(String),
MissingImages(String),
MissingAnnotations(String),
MissingLabel(String),
InvalidParameters(String),
FeatureNotEnabled(String),
EmptyToken,
InvalidToken,
TokenExpired,
Unauthorized,
InvalidEtag(String),
PolarsError(PolarsError),
}Expand description
Comprehensive error type for EdgeFirst Studio Client operations.
This enum covers all possible error conditions that can occur when using the EdgeFirst Studio Client, from network issues to authentication problems and data validation errors.
Variants§
IoError(Error)
An I/O error occurred during file operations.
ConfigError(ConfigError)
Configuration parsing or loading error.
JsonError(Error)
JSON serialization or deserialization error.
HttpError(Error)
HTTP request error from the reqwest client.
MaxRetriesExceeded(u32)
Maximum number of retries exceeded for an operation.
UrlParseError(ParseError)
URL parsing error.
RpcError(i32, String)
RPC error with error code and message from the server.
InvalidRpcId(String)
Invalid RPC request ID format.
EnvError(VarError)
Environment variable error.
SemaphoreError(AcquireError)
Semaphore acquisition error for concurrent operations.
JoinError(JoinError)
Async task join error.
ProgressSendError(SendError<Progress>)
Error sending progress updates.
ProgressRecvError(RecvError)
Error receiving progress updates.
StripPrefixError(StripPrefixError)
Path prefix stripping error.
ParseIntError(ParseIntError)
Integer parsing error.
InvalidResponse
Server returned an invalid or unexpected response.
NotImplemented
Requested functionality is not yet implemented.
PartTooLarge
File part size exceeds the maximum allowed limit.
InvalidFileType(String)
Invalid file type provided.
InvalidAnnotationType(String)
Invalid annotation type provided.
UnsupportedFormat(String)
Unsupported file format.
MissingImages(String)
Required image files are missing from the dataset.
MissingAnnotations(String)
Required annotation files are missing from the dataset.
MissingLabel(String)
Referenced label is missing or not found.
InvalidParameters(String)
Invalid parameters provided to an operation.
FeatureNotEnabled(String)
Attempted to use a feature that is not enabled.
EmptyToken
Authentication token is empty or not provided.
InvalidToken
Authentication token format is invalid.
TokenExpired
Authentication token has expired.
User is not authorized to perform the requested operation.
InvalidEtag(String)
Invalid or missing ETag header in HTTP response.
PolarsError(PolarsError)
Polars dataframe operation error (only with “polars” feature).
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
Source§impl From<AcquireError> for Error
impl From<AcquireError> for Error
Source§fn from(err: AcquireError) -> Self
fn from(err: AcquireError) -> Self
Source§impl From<ConfigError> for Error
impl From<ConfigError> for Error
Source§fn from(err: ConfigError) -> Self
fn from(err: ConfigError) -> Self
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Source§impl From<PolarsError> for Error
Available on crate feature polars only.
impl From<PolarsError> for Error
polars only.Source§fn from(err: PolarsError) -> Self
fn from(err: PolarsError) -> Self
Source§impl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
Source§fn from(err: StripPrefixError) -> Self
fn from(err: StripPrefixError) -> Self
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§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.