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
BadUri
An invalid uri was used to construct the client.
BadSSL
Was unable to resolve ssl configuration
BadResponse(StellarError)
Placeholder for errors that come back from the client.
ServerError
Server error detected
Http(Error)
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.
JsonParseError(Error)
An error occurred while parsing the json
Reqwest(Error)
Catch-all for reqwest error handling
TryFromUri(Error)
Errors that occur when converting from uri into something else.
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
impl StdError for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<UriError> for Error
[src]
impl From<UriError> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<InvalidUri> for Error
[src]
impl From<InvalidUri> for Error
fn from(_: InvalidUri) -> Self
[src]
fn from(_: InvalidUri) -> Self
Performs the conversion.
impl From<UrlError> for Error
[src]
impl From<UrlError> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error