net.sf.xenqtt
Class MqttInvocationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.xenqtt.MqttException
                  extended by net.sf.xenqtt.MqttInvocationException
All Implemented Interfaces:
Serializable

public final class MqttInvocationException
extends MqttException

Thrown when an Exception occurs during the processing of a command.

See Also:
Serialized Form

Constructor Summary
MqttInvocationException(String message, Exception rootCause)
          Create a new instance of this class.
 
Method Summary
 Exception getRootCause()
           
 void printStackTrace(PrintStream s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MqttInvocationException

public MqttInvocationException(String message,
                               Exception rootCause)
Create a new instance of this class.

Parameters:
message - A textual message describing the situation that led to the throwing of this exception
rootCause - The exception that was originally thrown
Method Detail

getRootCause

public Exception getRootCause()
Returns:
The exception that occurred while the command was executing. This is not the Throwable.getCause() of this exception because it happened on a different thread. The stack trace for the root cause shows where the problem lies. The stack trace for this invocation exception shows where the command was called from.

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable
See Also:
Throwable.printStackTrace(java.io.PrintStream)


Copyright © 2013. All Rights Reserved.