Enum stellar_client::error::Error[][src]

pub enum Error {
    BadUri,
    BadSSL,
    BadResponse(StellarError),
    ServerError,
    Http(Error),
    JsonParseError(Error),
    Reqwest(Error),
    TryFromUri(Error),
    // some variants omitted
}

A set of errors for use in the client

Variants

An invalid uri was used to construct the client.

Was unable to resolve ssl configuration

Placeholder for errors that come back from the client.

Server error detected

The response was from the http library and resulted in an error. this type does not map down well and currently is just wrapped generically. See the inner description for details.

https://github.com/hyperium/http/issues/188

An error occurred while parsing the json

https://docs.serde.rs/serde_json/error/struct.Error.html

Catch-all for reqwest error handling

Errors that occur when converting from uri into something else.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

This method is soft-deprecated. Read more

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

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl From<UriError> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<InvalidUri> for Error
[src]

Performs the conversion.

impl From<UrlError> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error