Package com.orbitz.consul
Class ConsulException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.orbitz.consul.ConsulException
-
- All Implemented Interfaces:
java.io.Serializable
public class ConsulException extends java.lang.RuntimeExceptionWraps an exception thrown whilst interacting with the Consul API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConsulException(int code, retrofit2.Response<?> response)ConsulException(java.lang.String message)Constructs an instance of this class.ConsulException(java.lang.String message, java.lang.Throwable throwable)Constructs an instance of this class.ConsulException(java.lang.Throwable throwable)
-
Method Summary
Modifier and Type Method Description intgetCode()
-
-
-
Constructor Detail
-
ConsulException
public ConsulException(java.lang.String message)
Constructs an instance of this class.- Parameters:
message- The exception message.
-
ConsulException
public ConsulException(java.lang.String message, java.lang.Throwable throwable)Constructs an instance of this class.- Parameters:
message- The exception message.throwable- The wrappedThrowableobject.
-
ConsulException
public ConsulException(int code, retrofit2.Response<?> response)
-
ConsulException
public ConsulException(java.lang.Throwable throwable)
-
-