pub enum AspenError {
InvalidAction(String),
InvalidConditionOperator(String),
InvalidPolicyVersion(String),
InvalidPrincipal(String),
InvalidResource(String),
InvalidSubstitution(String),
}
Expand description
The error type used to convey Aspen errors.
Variants§
InvalidAction(String)
An invalid action was specified in a policy. The string is the invalid action.
InvalidConditionOperator(String)
An invalid condition operator was specified in a condition clause. The string contains the invalid operator.
InvalidPolicyVersion(String)
An invalid policy version was specified in a policy. The string contains the invalid version.
InvalidPrincipal(String)
An invalid principal was specified ina policy. The string contains the invalid principal.
InvalidResource(String)
An invalid resource was specified in a policy. The string contains the invalid resource.
InvalidSubstitution(String)
An invalid variable substitution was specified in a policy. The string contains the invalid variable.
Trait Implementations§
Source§impl Debug for AspenError
impl Debug for AspenError
Source§impl Display for AspenError
impl Display for AspenError
Source§impl Error for AspenError
impl Error for AspenError
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 PartialEq for AspenError
impl PartialEq for AspenError
impl Eq for AspenError
impl StructuralPartialEq for AspenError
Auto Trait Implementations§
impl Freeze for AspenError
impl RefUnwindSafe for AspenError
impl Send for AspenError
impl Sync for AspenError
impl Unpin for AspenError
impl UnwindSafe for AspenError
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