org.nakedobjects.plugins.headless.applib
Class InteractionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.nakedobjects.plugins.headless.applib.InteractionException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DisabledException, HiddenException, InvalidException

public abstract class InteractionException
extends java.lang.RuntimeException

See Also:
Serialized Form

Constructor Summary
InteractionException(InteractionEvent interactionEvent)
           
 
Method Summary
 java.lang.Class<?> getAdvisorClass()
          Convenience method that returns the advisor class of the wrapped interaction event.
 Identifier getIdentifier()
          Convenience method that returns the identifier of the wrapped interaction event.
protected  InteractionEvent getInteractionEvent()
          The event passed into the constructor.
 
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

InteractionException

public InteractionException(InteractionEvent interactionEvent)
Method Detail

getInteractionEvent

protected InteractionEvent getInteractionEvent()
The event passed into the constructor.

Not part of the API, but made available so that subclasses can expose as the appropriate subtype of InteractionEvent. This would have been more obvious to see if InteractionException was generic, but generic subclasses of Throwable are (apparently) not allowed.

Returns:

getAdvisorClass

public java.lang.Class<?> getAdvisorClass()
Convenience method that returns the advisor class of the wrapped interaction event.

Returns:

getIdentifier

public Identifier getIdentifier()
Convenience method that returns the identifier of the wrapped interaction event.

Returns:


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.