pub enum SdkError {
Show 14 variants
Applications(ApplicationsError),
Authentication(String),
Authorization(String),
Http(Error),
Middleware(Error),
Images(ImagesError),
InvalidHeaderValue(String),
ClientError(String),
Io(Error),
Json(Error),
JsonWithError(Error<Error>),
Secrets(SecretsError),
ServerError {
status: StatusCode,
message: String,
},
EventSourceError(String),
}Expand description
The main error type for the Tensorlake Cloud SDK.
This enum encompasses all possible errors that can occur when using the SDK, including client-specific errors, authentication issues, and general HTTP errors.
Variants§
Applications(ApplicationsError)
Errors specific to the Applications client
Authentication(String)
Authentication error (HTTP 401)
Authorization(String)
Authorization error (HTTP 403)
Http(Error)
General HTTP errors
Middleware(Error)
Reqwest middleware errors
Images(ImagesError)
Errors specific to the Images client
InvalidHeaderValue(String)
Invalid header value during client initialization
ClientError(String)
Client configuration error
Io(Error)
General IO errors
Json(Error)
JSON serialization/deserialization errors
JsonWithError(Error<Error>)
JSON serialization/deserialization errors
Secrets(SecretsError)
Errors specific to the Secrets client
ServerError
Server returned an error status
EventSourceError(String)
EventSource (SSE) stream error
Trait Implementations§
Source§impl Error for SdkError
impl Error for SdkError
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<ApplicationsError> for SdkError
impl From<ApplicationsError> for SdkError
Source§fn from(source: ApplicationsError) -> Self
fn from(source: ApplicationsError) -> Self
Converts to this type from the input type.
Source§impl From<ImagesError> for SdkError
impl From<ImagesError> for SdkError
Source§fn from(source: ImagesError) -> Self
fn from(source: ImagesError) -> Self
Converts to this type from the input type.
Source§impl From<SdkError> for SandboxImageBuildError
impl From<SdkError> for SandboxImageBuildError
Source§impl From<SecretsError> for SdkError
impl From<SecretsError> for SdkError
Source§fn from(source: SecretsError) -> Self
fn from(source: SecretsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SdkError
impl !UnwindSafe for SdkError
impl Freeze for SdkError
impl Send for SdkError
impl Sync for SdkError
impl Unpin for SdkError
impl UnsafeUnpin for SdkError
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