pub enum BurnCentralError {
InvalidExperimentPath(String),
InvalidProjectPath(String),
InvalidExperimentNumber(String),
InvalidModelPath(String),
Client {
context: String,
source: ClientError,
},
ExperimentTracker(ExperimentTrackerError),
Unauthenticated,
Io(Error),
Internal(String),
}Expand description
Errors that can occur during when using the BurnCentral client.
Those errors should be handled by the user of this library. If he want to implement fallback behavior or retry logic.
Variants§
InvalidExperimentPath(String)
Input validation errors
InvalidProjectPath(String)
This error occurs when the provided project path is invalid. It is a input validation errors. No API call has been made yet.
InvalidExperimentNumber(String)
This error occurs when the provided experiment number is invalid. It is a input validation errors. No API call has been made yet.
InvalidModelPath(String)
This error occurs when the provided model path is invalid. It is a input validation errors. No API call has been made yet.
Client
Represents an error related to client operations.
This error variant is used to encapsulate client-specific errors along with additional context and the underlying source error for more detailed debugging.
§Fields
context(String): A description or additional information about the client error context.source(ClientError): The underlying source of the client error, providing more details about the cause.
ExperimentTracker(ExperimentTrackerError)
Represents an error related to the experiment tracker. Those errors are coming from the websocket connection that open when starting an experiment run.
Unauthenticated
Error that should be used when the user is not logged in but tries to perform an operation that requires authentication.
Io(Error)
Error that should be used when the client performs operations that can fail due to IO issues.
Internal(String)
Error that should be used when the client encounters an error that is not specifically handled.
Trait Implementations§
Source§impl Debug for BurnCentralError
impl Debug for BurnCentralError
Source§impl Display for BurnCentralError
impl Display for BurnCentralError
Source§impl Error for BurnCentralError
impl Error for BurnCentralError
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<Error> for BurnCentralError
impl From<Error> for BurnCentralError
Source§impl From<ExperimentTrackerError> for BurnCentralError
impl From<ExperimentTrackerError> for BurnCentralError
Source§fn from(source: ExperimentTrackerError) -> Self
fn from(source: ExperimentTrackerError) -> Self
Auto Trait Implementations§
impl Freeze for BurnCentralError
impl !RefUnwindSafe for BurnCentralError
impl Send for BurnCentralError
impl Sync for BurnCentralError
impl Unpin for BurnCentralError
impl !UnwindSafe for BurnCentralError
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> 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.