pub enum EurekaClientError {
ClientError(Error),
JsonError(Error),
GenericError(String),
InvalidUri(UriError),
InternalServerError,
BadRequest,
NotFound,
}Expand description
Errors that can be returned by the EurekaClient
Variants§
ClientError(Error)
An underlying error occurred with the Hyper http client
JsonError(Error)
An error occurred parsing a response from the server
GenericError(String)
A generic error that was no otherwise typed occurred
InvalidUri(UriError)
The Uri of the Eureka server was invalid
InternalServerError
An server error occurred with Eureka
BadRequest
Request parameters sent to Eureka were invalid
NotFound
The specified resource does not exist in eureka, such as an invalid application name
Trait Implementations§
Source§impl Debug for EurekaClientError
impl Debug for EurekaClientError
Source§impl Display for EurekaClientError
impl Display for EurekaClientError
Source§impl Error for EurekaClientError
impl Error for EurekaClientError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<Error> for EurekaClientError
impl From<Error> for EurekaClientError
Source§fn from(err: HyperError) -> EurekaClientError
fn from(err: HyperError) -> EurekaClientError
Converts to this type from the input type.
Source§impl From<Error> for EurekaClientError
impl From<Error> for EurekaClientError
Source§fn from(err: ParserError) -> EurekaClientError
fn from(err: ParserError) -> EurekaClientError
Converts to this type from the input type.
Source§impl From<UriError> for EurekaClientError
impl From<UriError> for EurekaClientError
Source§fn from(err: UriError) -> EurekaClientError
fn from(err: UriError) -> EurekaClientError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EurekaClientError
impl !RefUnwindSafe for EurekaClientError
impl Send for EurekaClientError
impl Sync for EurekaClientError
impl Unpin for EurekaClientError
impl !UnwindSafe for EurekaClientError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more