pub enum GroveError {
Show 20 variants
ExtensionNotFound {
extension_id: String,
message: Option<String>,
},
ExtensionLoadFailed {
extension_id: String,
reason: String,
path: Option<String>,
},
ActivationFailed {
extension_id: String,
reason: String,
},
DeactivationFailed {
extension_id: String,
reason: String,
},
WASMRuntimeError {
reason: String,
module_id: Option<String>,
},
WASMCompilationFailed {
reason: String,
module_path: Option<String>,
},
WASMModuleNotFound {
module_id: String,
},
TransportError {
transport_type: String,
reason: String,
},
ConnectionError {
endpoint: String,
reason: String,
},
APIError {
api_method: String,
reason: String,
error_code: Option<i32>,
},
ConfigurationError {
key: String,
reason: String,
},
IoError {
path: Option<String>,
operation: String,
reason: String,
},
SerializationError {
type_name: String,
reason: String,
},
DeserializationError {
type_name: String,
reason: String,
},
Timeout {
operation: String,
timeout_ms: u64,
},
InvalidArgument {
argument_name: String,
reason: String,
},
NotImplemented {
feature: String,
},
PermissionDenied {
resource: String,
reason: String,
},
ResourceExhausted {
resource: String,
reason: String,
},
InternalError {
reason: String,
backtrace: Option<String>,
},
}Expand description
Grove error type
Variants§
ExtensionNotFound
Extension not found error
ExtensionLoadFailed
Extension loading failed error
Fields
ActivationFailed
Extension activation failed error
DeactivationFailed
Extension deactivation failed error
WASMRuntimeError
WASM runtime error
WASMCompilationFailed
WASM compilation failed error
WASMModuleNotFound
WASM module not found error
TransportError
Transport error
ConnectionError
Connection error
APIError
API call error
Fields
ConfigurationError
Configuration error
IoError
I/O error
Fields
SerializationError
Serialization error
DeserializationError
Deserialization error
Timeout
Timeout error
Fields
InvalidArgument
Invalid argument error
NotImplemented
Not implemented error
PermissionDenied
Permission denied error
ResourceExhausted
Resource exhausted error
InternalError
Internal error
Implementations§
Source§impl GroveError
impl GroveError
Sourcepub fn extension_not_found(extension_id: impl Into<String>) -> Self
pub fn extension_not_found(extension_id: impl Into<String>) -> Self
Create extension not found error
Sourcepub fn extension_load_failed(
extension_id: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn extension_load_failed( extension_id: impl Into<String>, reason: impl Into<String>, ) -> Self
Create extension load failed error
Sourcepub fn activation_failed(
extension_id: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn activation_failed( extension_id: impl Into<String>, reason: impl Into<String>, ) -> Self
Create activation failed error
Sourcepub fn wasm_runtime_error(reason: impl Into<String>) -> Self
pub fn wasm_runtime_error(reason: impl Into<String>) -> Self
Create WASM runtime error
Sourcepub fn transport_error(
transport_type: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn transport_error( transport_type: impl Into<String>, reason: impl Into<String>, ) -> Self
Create transport error
Sourcepub fn connection_error(
endpoint: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn connection_error( endpoint: impl Into<String>, reason: impl Into<String>, ) -> Self
Create connection error
Sourcepub fn api_error(
api_method: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn api_error( api_method: impl Into<String>, reason: impl Into<String>, ) -> Self
Create API error
Sourcepub fn invalid_argument(
argument_name: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn invalid_argument( argument_name: impl Into<String>, reason: impl Into<String>, ) -> Self
Create invalid argument error
Sourcepub fn not_implemented(feature: impl Into<String>) -> Self
pub fn not_implemented(feature: impl Into<String>) -> Self
Create not implemented error
Sourcepub fn error_code(&self) -> &'static str
pub fn error_code(&self) -> &'static str
Get error code for categorization
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Check if error is recoverable
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
Check if error is transient (can be retried)
Trait Implementations§
Source§impl Clone for GroveError
impl Clone for GroveError
Source§fn clone(&self) -> GroveError
fn clone(&self) -> GroveError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GroveError
impl Debug for GroveError
Source§impl<'de> Deserialize<'de> for GroveError
impl<'de> Deserialize<'de> for GroveError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for GroveError
impl Display for GroveError
Source§impl Error for GroveError
impl Error for GroveError
1.30.0 · 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 GroveError
Convert from std::io::Error
impl From<Error> for GroveError
Convert from std::io::Error
Source§impl From<Error> for GroveError
Convert from serde_json::Error
impl From<Error> for GroveError
Convert from serde_json::Error
Auto Trait Implementations§
impl Freeze for GroveError
impl RefUnwindSafe for GroveError
impl Send for GroveError
impl Sync for GroveError
impl Unpin for GroveError
impl UnwindSafe for GroveError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request