pub enum PodError {
Show 19 variants
NotFound(String),
AlreadyExists(String),
Forbidden,
Unauthenticated,
Io(Error),
InvalidPath(String),
InvalidContentType(String),
Json(Error),
UrlParse(ParseError),
Base64(DecodeError),
Hex(FromHexError),
AclParse(String),
Nip98(String),
Watch(String),
Backend(String),
PreconditionFailed(String),
Unsupported(String),
BadRequest(String),
PayloadTooLarge(String),
}Expand description
Errors emitted by solid-pod-rs.
Variants§
NotFound(String)
The requested resource does not exist (HTTP 404).
AlreadyExists(String)
A resource already exists at the target path (HTTP 409).
Forbidden
The authenticated agent lacks the required WAC access mode (HTTP 403).
Unauthenticated
No valid credentials were presented (HTTP 401).
Io(Error)
Filesystem or network I/O failure.
InvalidPath(String)
The request path is syntactically invalid or escapes the pod root.
InvalidContentType(String)
The supplied Content-Type is not acceptable for this operation.
Json(Error)
JSON serialisation or deserialisation failed.
UrlParse(ParseError)
A URL could not be parsed.
Base64(DecodeError)
Base64 decoding failed (e.g. in a NIP-98 or DPoP token).
Hex(FromHexError)
Hex decoding failed.
AclParse(String)
An ACL document could not be parsed as JSON-LD or Turtle.
Nip98(String)
NIP-98 authentication verification failed.
Watch(String)
The storage watch/notification subsystem encountered an error.
Backend(String)
A storage backend reported an unclassified error.
PreconditionFailed(String)
An If-Match / If-None-Match precondition was not satisfied (HTTP 412).
Unsupported(String)
The requested operation is not supported by this configuration.
BadRequest(String)
The request is malformed (HTTP 400).
PayloadTooLarge(String)
Request body exceeds a size limit (HTTP 413 equivalent).
Used by the ACL parsers (parse_turtle_acl, parse_jsonld_acl) to
reject oversized documents before parsing begins.
Trait Implementations§
Source§impl Error for PodError
impl Error for PodError
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<DecodeError> for PodError
impl From<DecodeError> for PodError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Source§impl From<FromHexError> for PodError
impl From<FromHexError> for PodError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Source§impl From<ParseError> for PodError
impl From<ParseError> for PodError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Auto Trait Implementations§
impl Freeze for PodError
impl !RefUnwindSafe for PodError
impl Send for PodError
impl Sync for PodError
impl Unpin for PodError
impl UnsafeUnpin for PodError
impl !UnwindSafe for PodError
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> 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> 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.