com.orbitz.consul
Class ConsulException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.orbitz.consul.ConsulException
All Implemented Interfaces:
java.io.Serializable

public class ConsulException
extends java.lang.RuntimeException

Wraps an exception thrown whilst interacting with the Consul API.

See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 wrapped Throwable object.