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
BadUriAn invalid uri was used to construct the client.
BadSSLWas unable to resolve ssl configuration
BadResponse(StellarError)Placeholder for errors that come back from the client.
ServerErrorServer 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 Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl StdError for Error[src]
impl StdError for Errorfn description(&self) -> &str[src]
fn description(&self) -> &strThis 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 Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<UriError> for Error[src]
impl From<UriError> for Errorimpl From<Error> for Error[src]
impl From<Error> for Errorimpl From<Error> for Error[src]
impl From<Error> for Errorimpl From<InvalidUri> for Error[src]
impl From<InvalidUri> for Errorfn from(_: InvalidUri) -> Self[src]
fn from(_: InvalidUri) -> SelfPerforms the conversion.
impl From<UrlError> for Error[src]
impl From<UrlError> for Errorimpl From<Error> for Error[src]
impl From<Error> for Errorimpl From<Error> for Error[src]
impl From<Error> for Error