Enum warg_client::api::ClientError
source · pub enum ClientError {
Show 19 variants
Fetch(FetchError),
Package(PackageError),
Content(ContentError),
Proof(ProofError),
Monitor(MonitorError),
Ledger(LedgerError),
Communication(Error),
UnexpectedResponse {
status: StatusCode,
message: String,
},
IncorrectConsistencyProof {
root: AnyHash,
found: AnyHash,
},
Hash(HashError),
ConsistencyProof(ConsistencyProofError),
InclusionProof(InclusionProofError),
RecordNotPublished(RecordId),
NoSourceForContent(AnyHash),
AllSourcesFailed(AnyHash),
InvalidHttpMethod(String),
InvalidHttpHeader(String, String),
LogNotFoundWithHint(LogId, HeaderValue),
Other(Error),
}Expand description
Represents an error that occurred while communicating with the registry.
Variants§
Fetch(FetchError)
An error was returned from the fetch API.
Package(PackageError)
An error was returned from the package API.
Content(ContentError)
An error was returned from the content API.
Proof(ProofError)
An error was returned from the proof API.
Monitor(MonitorError)
An error was returned from the monitor API.
Ledger(LedgerError)
An error was returned from the ledger API.
Communication(Error)
An error occurred while communicating with the registry.
UnexpectedResponse
An unexpected response was received from the server.
IncorrectConsistencyProof
The provided root for a consistency proof was incorrect.
Hash(HashError)
A hash returned from the server was incorrect.
ConsistencyProof(ConsistencyProofError)
The client failed a consistency proof.
InclusionProof(InclusionProofError)
The client failed an inclusion proof.
RecordNotPublished(RecordId)
The record was not published.
NoSourceForContent(AnyHash)
Could not find a source for the given content digest.
AllSourcesFailed(AnyHash)
All sources for the given content digest returned an error response.
InvalidHttpMethod(String)
Invalid upload HTTP method.
InvalidHttpHeader(String, String)
Invalid upload HTTP method.
LogNotFoundWithHint(LogId, HeaderValue)
The provided log was not found with hint header.
Other(Error)
An other error occurred during the requested operation.