public class ConsulException extends RuntimeException
Constructor and Description |
---|
ConsulException(int code,
retrofit2.Response<?> response) |
ConsulException(String message)
Constructs an instance of this class.
|
ConsulException(String message,
Throwable throwable)
Constructs an instance of this class.
|
ConsulException(Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ConsulException(String message)
message
- The exception message.public ConsulException(String message, Throwable throwable)
message
- The exception message.throwable
- The wrapped Throwable
object.public ConsulException(int code, retrofit2.Response<?> response)
public ConsulException(Throwable throwable)
Copyright © 2018. All rights reserved.