pub enum PluginError {
Initialization {
message: String,
},
Configuration {
message: String,
},
RequestProcessing {
message: String,
},
ResponseProcessing {
message: String,
},
CustomHandler {
message: String,
},
DependencyNotAvailable {
dependency: String,
},
VersionIncompatible {
message: String,
},
ResourceAccess {
resource: String,
message: String,
},
External {
source: Box<dyn Error + Send + Sync>,
},
}
Expand description
Errors that can occur during plugin operations
Variants§
Initialization
Plugin initialization failed
Configuration
Plugin configuration is invalid
RequestProcessing
Error during request processing
ResponseProcessing
Error during response processing
CustomHandler
Error in custom method handler
DependencyNotAvailable
Plugin dependency not available
VersionIncompatible
Plugin version compatibility issue
ResourceAccess
Resource access error
External
External system error
Implementations§
Source§impl PluginError
impl PluginError
Sourcepub fn initialization(message: impl Into<String>) -> Self
pub fn initialization(message: impl Into<String>) -> Self
Create an initialization error
Sourcepub fn configuration(message: impl Into<String>) -> Self
pub fn configuration(message: impl Into<String>) -> Self
Create a configuration error
Sourcepub fn request_processing(message: impl Into<String>) -> Self
pub fn request_processing(message: impl Into<String>) -> Self
Create a request processing error
Sourcepub fn response_processing(message: impl Into<String>) -> Self
pub fn response_processing(message: impl Into<String>) -> Self
Create a response processing error
Sourcepub fn custom_handler(message: impl Into<String>) -> Self
pub fn custom_handler(message: impl Into<String>) -> Self
Create a custom handler error
Sourcepub fn dependency_not_available(dependency: impl Into<String>) -> Self
pub fn dependency_not_available(dependency: impl Into<String>) -> Self
Create a dependency error
Sourcepub fn version_incompatible(message: impl Into<String>) -> Self
pub fn version_incompatible(message: impl Into<String>) -> Self
Create a version incompatibility error
Trait Implementations§
Source§impl Debug for PluginError
impl Debug for PluginError
Source§impl Display for PluginError
impl Display for PluginError
Source§impl Error for PluginError
impl Error for PluginError
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()
Auto Trait Implementations§
impl Freeze for PluginError
impl !RefUnwindSafe for PluginError
impl Send for PluginError
impl Sync for PluginError
impl Unpin for PluginError
impl !UnwindSafe for PluginError
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