pub enum SdkError {
TeamNotFound(InvalidUri),
EndpointNotFound(Error),
ApiError(SdkApiError),
EnvConfigurationError(VarError),
}
Expand description
The error type for the SDK.
Variants§
TeamNotFound(InvalidUri)
This error is returned when the team that an operation refers to is not found.
EndpointNotFound(Error)
This error is returned when an endpoint is not found.
ApiError(SdkApiError)
This error is returned when an underying API throws an error.
EnvConfigurationError(VarError)
This error is returned when an environment variable is not found or is invalid.
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<Error> for SdkError
impl From<Error> for SdkError
source§fn from(source: TonicError) -> Self
fn from(source: TonicError) -> Self
Converts to this type from the input type.
source§impl From<SdkApiError> for SdkError
impl From<SdkApiError> for SdkError
source§fn from(source: SdkApiError) -> Self
fn from(source: SdkApiError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for SdkError
impl !RefUnwindSafe for SdkError
impl Send for SdkError
impl Sync for SdkError
impl Unpin for SdkError
impl !UnwindSafe 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request