net.sf.xenqtt
Class MqttInvocationError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by net.sf.xenqtt.MqttInvocationError
All Implemented Interfaces:
Serializable

public final class MqttInvocationError
extends Error

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

See Also:
Serialized Form

Constructor Summary
MqttInvocationError(String message, Error rootCause)
          Create a new instance of this class.
 
Method Summary
 Error 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

MqttInvocationError

public MqttInvocationError(String message,
                           Error rootCause)
Create a new instance of this class.

Parameters:
message - A textual message describing the situation leading to the throwing of this error
rootCause - The actual error that was thrown
Method Detail

getRootCause

public Error getRootCause()
Returns:
The error that occurred while the command was executing. This is not the Throwable.getCause() of this error 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 error 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.