AMETAS.util.context
Class ContextException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byAMETAS.util.context.ContextException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ContextTerminatedException, FinalizedContextException, MessagePushbackException, MessageRejectedException, UnknownContextException

public class ContextException
extends java.lang.Exception

Exception which occurs when working with contexts.

Since:
2.6.0
See Also:
Serialized Form

Constructor Summary
ContextException()
          Constructor.
ContextException(java.lang.String sMessage)
          Constructor with details.
ContextException(java.lang.String sMessage, AMETASMessage msg)
          Constructor with details and offending message.
 
Method Summary
 AMETASMessage getOffendingMessage()
          Returns the message which caused this exception.
 
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

ContextException

public ContextException()
Constructor.


ContextException

public ContextException(java.lang.String sMessage)
Constructor with details.

Parameters:
sMessage - Details.

ContextException

public ContextException(java.lang.String sMessage,
                        AMETASMessage msg)
Constructor with details and offending message.

Parameters:
sMessage - Details.
msg - Message which caused this exception.
Method Detail

getOffendingMessage

public AMETASMessage getOffendingMessage()
Returns the message which caused this exception.

Returns:
Message.