pub enum Error {
Show 29 variants
Status(StatusCode),
Json(StatusCode, Value),
Unauthorized,
BadRequest,
Forbidden,
Conflict,
RpcUnknownMethod(String),
NotFile(PathBuf),
NotDirectory(PathBuf),
DirectoryExists(PathBuf),
FileExists(PathBuf),
NoAccount(Address),
AccountExists(Address),
FileChecksumMismatch(String, String),
Net(Error),
TryFromSlice(TryFromSliceError),
Core(Error),
Url(ParseError),
HeaderValue(InvalidHeaderValue),
WebServer(Error),
Io(Error),
TomlDeser(Error),
TomlSer(Error),
AddrParse(AddrParseError),
Ecdsa(Error),
SerdeJson(Error),
Uuid(Error),
Base58(Error),
Http(Error),
}server only.Expand description
Errors generated by the server module.
Variants§
Status(StatusCode)
HTTP status code.
Json(StatusCode, Value)
Status code with JSON response.
Unauthorized error.
BadRequest
Bad request error.
Forbidden
Forbidden access.
Conflict
Conflict.
RpcUnknownMethod(String)
Error generated when an RPC method is not supported.
NotFile(PathBuf)
Error generated when a path is not a file.
NotDirectory(PathBuf)
Error generated when a path is not a directory.
DirectoryExists(PathBuf)
Error generated when a directory already exists.
FileExists(PathBuf)
Error generated when a file already exists.
NoAccount(Address)
Error generated when an account is required.
AccountExists(Address)
Error generated when an account should not already exist.
FileChecksumMismatch(String, String)
Error generated when an uploaded file checksum does not match the expected checksum.
Net(Error)
Error generated by main net library.
TryFromSlice(TryFromSliceError)
Error generated converting from a slice.
Core(Error)
Error generated by the core library.
Url(ParseError)
Error generated attempting to parse a URL.
HeaderValue(InvalidHeaderValue)
Error generated when a header value is invalid.
WebServer(Error)
Error generated by the web server library.
Io(Error)
Error generated by the io module.
TomlDeser(Error)
Error generated deserializing from TOML.
TomlSer(Error)
Error generated serializing to TOML.
AddrParse(AddrParseError)
Error generated attempting to parse a socket address.
Ecdsa(Error)
Error generate by the ECDSA library.
SerdeJson(Error)
Error generate by the JSON library.
Uuid(Error)
Error generate by the UUID library.
Base58(Error)
Error generated trying to decode from base58.
Http(Error)
Error generated by the HTTP library.