Enum rs_es::error::EsError [] [src]

pub enum EsError {
    EsError(String),
    EsServerError(String),
    HttpError(Error),
    IoError(Error),
    JsonError(Error),
}

Error that can occur include IO and parsing errors, as well as specific errors from the ElasticSearch server and logic errors from this library

Variants

EsError(String)

An internal error from this library

EsServerError(String)

An error reported in a JSON response from the ElasticSearch server

HttpError(Error)

Miscellaneous error from the HTTP library

IoError(Error)

Miscellaneous IO error

JsonError(Error)

JSON error

Trait Implementations

impl Debug for EsError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Error> for EsError
[src]

fn from(err: Error) -> EsError

Performs the conversion.

impl From<Error> for EsError
[src]

fn from(err: Error) -> EsError

Performs the conversion.

impl From<Error> for EsError
[src]

fn from(err: Error) -> EsError

Performs the conversion.

impl<'a> From<&'a mut Response> for EsError
[src]

fn from(err: &'a mut Response) -> EsError

Performs the conversion.

impl Error for EsError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more

impl Display for EsError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.