#[non_exhaustive]pub enum YdbError {
Custom(String),
Convert(String),
NoRows,
InternalError(String),
TransportDial(Arc<Error>),
Transport(String),
TransportGRPCStatus(Arc<Status>),
YdbStatusError(YdbStatusError),
}Expand description
Error which can be returned from the crate.
Now most of errors are simple Custom error with custom text. Please not parse the text - it can be change at any time without compile check. Write about error type you need or PR it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Custom(String)
Common error
Not parse text of error for detect error type. It will change.
Convert(String)
Errors of convert between native rust types and ydb value
NoRows
No rows in result set
InternalError(String)
Unexpected error. Write issue if it will happen.
TransportDial(Arc<Error>)
Error while dial to ydb server
Transport(String)
Error on transport level of request/response
TransportGRPCStatus(Arc<Status>)
Error from GRPC status code
YdbStatusError(YdbStatusError)
Error from operation status
Trait Implementations§
Source§impl Error for YdbError
impl Error for YdbError
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<AcquireError> for YdbError
impl From<AcquireError> for YdbError
Source§fn from(e: AcquireError) -> Self
fn from(e: AcquireError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for YdbError
impl From<FromUtf8Error> for YdbError
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for YdbError
impl From<Infallible> for YdbError
Source§fn from(e: Infallible) -> Self
fn from(e: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUri> for YdbError
impl From<InvalidUri> for YdbError
Source§fn from(e: InvalidUri) -> Self
fn from(e: InvalidUri) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUriParts> for YdbError
impl From<InvalidUriParts> for YdbError
Source§fn from(e: InvalidUriParts) -> Self
fn from(e: InvalidUriParts) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for YdbError
impl From<ParseError> for YdbError
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for YdbError
impl From<ParseError> for YdbError
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Source§impl<T> From<PoisonError<T>> for YdbError
impl<T> From<PoisonError<T>> for YdbError
Source§fn from(e: PoisonError<T>) -> Self
fn from(e: PoisonError<T>) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for YdbError
impl From<SystemTimeError> for YdbError
Source§fn from(e: SystemTimeError) -> Self
fn from(e: SystemTimeError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for YdbError
impl From<TryFromIntError> for YdbError
Source§fn from(e: TryFromIntError) -> Self
fn from(e: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl From<UninitializedFieldError> for YdbError
impl From<UninitializedFieldError> for YdbError
Source§fn from(ufe: UninitializedFieldError) -> Self
fn from(ufe: UninitializedFieldError) -> Self
Converts to this type from the input type.
Source§impl From<YdbError> for YdbOrCustomerError
impl From<YdbError> for YdbOrCustomerError
Source§impl From<YdbOrCustomerError> for YdbError
impl From<YdbOrCustomerError> for YdbError
Source§fn from(e: YdbOrCustomerError) -> Self
fn from(e: YdbOrCustomerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for YdbError
impl !RefUnwindSafe for YdbError
impl Send for YdbError
impl Sync for YdbError
impl Unpin for YdbError
impl !UnwindSafe for YdbError
Blanket Implementations§
Source§impl<T> Any for T
impl<T> Any for T
Source§fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove
Any::type_id_compat and use StdAny::type_id instead.
https://github.com/rust-lang/rust/issues/27745
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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> 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