pub enum ApigateFrameworkError {
Core(ApigateCoreError),
Pipeline(ApigatePipelineError),
Http {
status: StatusCode,
message: Cow<'static, str>,
},
}Variants§
Implementations§
Source§impl ApigateFrameworkError
impl ApigateFrameworkError
pub fn user_message(&self) -> &str
pub fn debug_details(&self) -> Option<&str>
pub fn status_code(&self) -> StatusCode
pub fn code(&self) -> &'static str
Trait Implementations§
Source§impl Debug for ApigateFrameworkError
impl Debug for ApigateFrameworkError
Source§impl Display for ApigateFrameworkError
impl Display for ApigateFrameworkError
Source§impl Error for ApigateFrameworkError
impl Error for ApigateFrameworkError
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<ApigateCoreError> for ApigateFrameworkError
impl From<ApigateCoreError> for ApigateFrameworkError
Source§fn from(source: ApigateCoreError) -> Self
fn from(source: ApigateCoreError) -> Self
Converts to this type from the input type.
Source§impl From<ApigateFrameworkError> for ApigateError
impl From<ApigateFrameworkError> for ApigateError
Source§fn from(value: ApigateFrameworkError) -> Self
fn from(value: ApigateFrameworkError) -> Self
Converts to this type from the input type.
Source§impl From<ApigatePipelineError> for ApigateFrameworkError
impl From<ApigatePipelineError> for ApigateFrameworkError
Source§fn from(source: ApigatePipelineError) -> Self
fn from(source: ApigatePipelineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ApigateFrameworkError
impl RefUnwindSafe for ApigateFrameworkError
impl Send for ApigateFrameworkError
impl Sync for ApigateFrameworkError
impl Unpin for ApigateFrameworkError
impl UnsafeUnpin for ApigateFrameworkError
impl UnwindSafe for ApigateFrameworkError
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