pub enum Error {
Show 41 variants
SystemInit(String),
ActorCreation {
actor: String,
reason: String,
},
MissingResource {
name: String,
reason: String,
},
Network(String),
NetworkState(String),
RequestProcessing(String),
InvalidSignature(String),
SigningFailed(String),
RequestNotFound(String),
InvalidRequestState(String),
InvalidApprovalState(String),
ApprovalNotFound(String),
ApprovalUpdateFailed(String),
SubjectNotFound(String),
SubjectNotActive(String),
GovernanceNotFound(String),
GovernanceHasTrackers {
governance_id: String,
trackers: Vec<String>,
},
InvalidSubjectId(String),
Unauthorized(String),
Forbidden(String),
SafeMode(String),
AuthOperation(String),
WitnessesNotFound(String),
QueryFailed(String),
NoEventsFound(String),
EventNotFound {
subject: String,
sn: u64,
},
InvalidQueryParams(String),
DatabaseError(String),
ValidationFailed(String),
InvalidEventRequest(String),
SchemaValidation(String),
ActorCommunication {
actor: String,
},
UnexpectedResponse {
actor: String,
expected: String,
received: String,
},
ActorError(String),
TransferFailed(String),
NoPendingTransfers,
DistributionFailed(String),
UpdateFailed(String, String),
Internal(String),
Timeout(String),
NotImplemented(String),
}Expand description
Core API errors that may be returned to users.
Variants§
SystemInit(String)
System initialization failed.
ActorCreation
Failed to create a required actor.
MissingResource
Required helper or resource not found.
Network(String)
Network operation failed.
NetworkState(String)
Unable to retrieve network state.
RequestProcessing(String)
Request could not be processed.
InvalidSignature(String)
Request signature is invalid or verification failed.
SigningFailed(String)
Node was unable to sign the request.
RequestNotFound(String)
Request not found in tracking system.
InvalidRequestState(String)
Request is in an invalid state for this operation.
InvalidApprovalState(String)
Invalid approval state transition.
ApprovalNotFound(String)
Approval not found for subject.
ApprovalUpdateFailed(String)
Failed to update approval state.
SubjectNotFound(String)
Subject not found.
SubjectNotActive(String)
Subject is not active.
GovernanceNotFound(String)
Governance not found.
GovernanceHasTrackers
Governance still has trackers associated and cannot be deleted.
InvalidSubjectId(String)
Invalid subject identifier.
Authorization failed.
Forbidden(String)
Insufficient permissions for operation.
SafeMode(String)
Node is running in safe mode and mutating operations are disabled.
AuthOperation(String)
Authentication subject operation failed.
WitnessesNotFound(String)
Witnesses not found for subject.
QueryFailed(String)
Query execution failed.
NoEventsFound(String)
No events found matching criteria.
EventNotFound
Event not found at specified sequence number.
InvalidQueryParams(String)
Invalid query parameters.
DatabaseError(String)
Database query error.
ValidationFailed(String)
Request validation failed.
InvalidEventRequest(String)
Invalid event request format.
SchemaValidation(String)
Schema validation failed.
ActorCommunication
Actor communication failed.
UnexpectedResponse
Received unexpected response from actor.
ActorError(String)
Actor returned an error.
TransferFailed(String)
Subject transfer operation failed.
NoPendingTransfers
No pending transfers found.
DistributionFailed(String)
Manual distribution failed.
UpdateFailed(String, String)
Update operation failed.
Internal(String)
Internal server error (catch-all for unexpected errors).
Timeout(String)
Operation timed out.
NotImplemented(String)
Feature not implemented.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for BridgeError
impl From<Error> for BridgeError
Source§impl From<SystemError> for Error
impl From<SystemError> for Error
Source§fn from(err: SystemError) -> Error
fn from(err: SystemError) -> Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.