Enum params::ParamsError
[−]
[src]
pub enum ParamsError {
BodyError(BodyError),
UrlDecodingError(UrlDecodingError),
IoError(Error),
InvalidPath,
CannotAppend,
CannotInsert,
NotJsonObject,
}An error representing any of the possible errors that can occur during parameter processing.
Variants
BodyError(BodyError)An error from parsing the request body.
UrlDecodingError(UrlDecodingError)An error from parsing URL encoded data.
IoError(Error)An I/O error from reading a multipart/form-data request body to temporary files.
InvalidPathInvalid parameter path.
CannotAppendTried to append to a non-array value.
CannotInsertTried to insert into a non-map value.
NotJsonObjectTried to make a Map from a non-object root JSON value.
Trait Implementations
impl Debug for ParamsError[src]
impl Display for ParamsError[src]
impl StdError for ParamsError[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl From<BodyError> for ParamsError[src]
fn from(err: BodyError) -> ParamsError
Performs the conversion.
impl From<Error> for ParamsError[src]
fn from(err: Error) -> ParamsError
Performs the conversion.