Enum fisher_common::errors::ErrorKind
[−]
[src]
pub enum ErrorKind { ProviderNotFound(String), InvalidInput(String), NotBehindProxy, WrongRequestKind, InvalidHexChar(char), InvalidHexLength, BrokenChannel, PoisonedLock, ThreadCrashed, IoError(Error), JsonError(Error), AddrParseError(AddrParseError), ParseIntError(ParseIntError), GenericError(Box<StdError + Send + Sync>), // some variants omitted }
This enum represents the kind of error that occured, with the details about it.
Variants
ProviderNotFound(String)
The provider requested by an hook doesn't exist. The provider name is provided as the first parameter.
InvalidInput(String)
The input you provided was invalid. A more detailed error message is available in the first parameter.
NotBehindProxy
The current request didn't travel across the configured number of proxies. This means the request was forged or the server is misconfigured.
WrongRequestKind
The current request isn't of the required kind.
InvalidHexChar(char)
The character is not valid hex. The character is available in the first parameter.
InvalidHexLength
The hex string has the wrong length.
BrokenChannel
An internal communication channel is broken.
PoisonedLock
An internal lock is poisoned, probably due to a thread crash.
ThreadCrashed
An internal thread crashed.
IoError(Error)
An error occured while performing I/O operations. The underlying error is available as the first parameter.
JsonError(Error)
An error occured while parsing some JSON. The underlying error is available as the first parameter.
AddrParseError(AddrParseError)
An error occured while parsing an IP address. The underlying error is available as the first parameter.
ParseIntError(ParseIntError)
An error occured while parsing a number. The underlying error is available as the first parameter.
GenericError(Box<StdError + Send + Sync>)
A generic error, without a defined type