pub enum KubernetesError {
ApiError(Error),
ConfigError(String),
ResourceNotFound(String),
InvalidResourceName(String),
RegexError(Error),
SerializationError(Error),
YamlError(Error),
OperationError(String),
NamespaceError(String),
PermissionDenied(String),
Timeout(String),
Generic(Error),
}Expand description
Errors that can occur during Kubernetes operations
Variants§
ApiError(Error)
Kubernetes API client error
ConfigError(String)
Configuration error
ResourceNotFound(String)
Resource not found error
InvalidResourceName(String)
Invalid resource name or pattern
RegexError(Error)
Regular expression error
SerializationError(Error)
Serialization/deserialization error
YamlError(Error)
YAML parsing error
OperationError(String)
Generic operation error
NamespaceError(String)
Namespace error
PermissionDenied(String)
Permission denied error
Timeout(String)
Timeout error
Generic(Error)
Generic error wrapper
Implementations§
Source§impl KubernetesError
impl KubernetesError
Sourcepub fn config_error(msg: impl Into<String>) -> Self
pub fn config_error(msg: impl Into<String>) -> Self
Create a new configuration error
Sourcepub fn operation_error(msg: impl Into<String>) -> Self
pub fn operation_error(msg: impl Into<String>) -> Self
Create a new operation error
Sourcepub fn namespace_error(msg: impl Into<String>) -> Self
pub fn namespace_error(msg: impl Into<String>) -> Self
Create a new namespace error
Sourcepub fn permission_denied(msg: impl Into<String>) -> Self
pub fn permission_denied(msg: impl Into<String>) -> Self
Create a new permission denied error
Trait Implementations§
Source§impl Debug for KubernetesError
impl Debug for KubernetesError
Source§impl Display for KubernetesError
impl Display for KubernetesError
Source§impl Error for KubernetesError
impl Error for KubernetesError
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 KubernetesError
impl From<Error> for KubernetesError
Source§impl From<Error> for KubernetesError
impl From<Error> for KubernetesError
Source§impl From<Error> for KubernetesError
impl From<Error> for KubernetesError
Source§impl From<Error> for KubernetesError
impl From<Error> for KubernetesError
Auto Trait Implementations§
impl !RefUnwindSafe for KubernetesError
impl !UnwindSafe for KubernetesError
impl Freeze for KubernetesError
impl Send for KubernetesError
impl Sync for KubernetesError
impl Unpin for KubernetesError
impl UnsafeUnpin for KubernetesError
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> 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 more