pub enum SdkError {
RequestError(Error),
RequestMiddlewareError(Error),
ServiceError(ServiceError),
ParamsError(String),
OtherError(Error),
}Variants§
RequestError(Error)
Request error.
RequestMiddlewareError(Error)
Request middleware error.
ServiceError(ServiceError)
Mochow service error. with service code, message and http status code.
ParamsError(String)
Mochow SDK param error.
OtherError(Error)
Other error.
Trait Implementations§
Source§impl Error for SdkError
impl Error for SdkError
1.30.0 · 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<AliasTableArgsBuilderError> for SdkError
impl From<AliasTableArgsBuilderError> for SdkError
Source§fn from(value: AliasTableArgsBuilderError) -> Self
fn from(value: AliasTableArgsBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ClientConfigurationBuilderError> for SdkError
impl From<ClientConfigurationBuilderError> for SdkError
Source§fn from(value: ClientConfigurationBuilderError) -> Self
fn from(value: ClientConfigurationBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<CreateDatabaseArgsBuilderError> for SdkError
impl From<CreateDatabaseArgsBuilderError> for SdkError
Source§fn from(value: CreateDatabaseArgsBuilderError) -> Self
fn from(value: CreateDatabaseArgsBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<DeleteIndexArgsBuilderError> for SdkError
impl From<DeleteIndexArgsBuilderError> for SdkError
Source§fn from(value: DeleteIndexArgsBuilderError) -> Self
fn from(value: DeleteIndexArgsBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<DescriptIndexArgsBuilderError> for SdkError
impl From<DescriptIndexArgsBuilderError> for SdkError
Source§fn from(value: DescriptIndexArgsBuilderError) -> Self
fn from(value: DescriptIndexArgsBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<DescriptTableArgsBuilderError> for SdkError
impl From<DescriptTableArgsBuilderError> for SdkError
Source§fn from(value: DescriptTableArgsBuilderError) -> Self
fn from(value: DescriptTableArgsBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<DropDatabaseArgsBuilderError> for SdkError
impl From<DropDatabaseArgsBuilderError> for SdkError
Source§fn from(value: DropDatabaseArgsBuilderError) -> Self
fn from(value: DropDatabaseArgsBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<DropTableArgsBuilderError> for SdkError
impl From<DropTableArgsBuilderError> for SdkError
Source§fn from(value: DropTableArgsBuilderError) -> Self
fn from(value: DropTableArgsBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ListDatabaseArgsBuilderError> for SdkError
impl From<ListDatabaseArgsBuilderError> for SdkError
Source§fn from(value: ListDatabaseArgsBuilderError) -> Self
fn from(value: ListDatabaseArgsBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ListTableArgsBuilderError> for SdkError
impl From<ListTableArgsBuilderError> for SdkError
Source§fn from(value: ListTableArgsBuilderError) -> Self
fn from(value: ListTableArgsBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<MochowClientBuilderError> for SdkError
impl From<MochowClientBuilderError> for SdkError
Source§fn from(value: MochowClientBuilderError) -> Self
fn from(value: MochowClientBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<RebuildIndexArgsBuilderError> for SdkError
impl From<RebuildIndexArgsBuilderError> for SdkError
Source§fn from(value: RebuildIndexArgsBuilderError) -> Self
fn from(value: RebuildIndexArgsBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<StatsTableArgsBuilderError> for SdkError
impl From<StatsTableArgsBuilderError> for SdkError
Source§fn from(value: StatsTableArgsBuilderError) -> Self
fn from(value: StatsTableArgsBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<UnaliasTableArgsBuilderError> for SdkError
impl From<UnaliasTableArgsBuilderError> for SdkError
Source§fn from(value: UnaliasTableArgsBuilderError) -> Self
fn from(value: UnaliasTableArgsBuilderError) -> 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
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.