Enum scratchstack_aspen::AspenError
source · 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)>
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<AspenError> for AspenError
impl PartialEq<AspenError> for AspenError
source§fn eq(&self, other: &AspenError) -> bool
fn eq(&self, other: &AspenError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.