org.nakedobjects.plugins.headless.applib
Class InvalidException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.nakedobjects.applib.ApplicationException
                  extended by org.nakedobjects.plugins.headless.applib.InteractionException
                      extended by org.nakedobjects.plugins.headless.applib.InvalidException
All Implemented Interfaces:
java.io.Serializable

public class InvalidException
extends InteractionException

Superclass of exceptions which indicate an attempt to interact with an object or member in a way that is invalid.

See Also:
Serialized Form

Constructor Summary
InvalidException(InteractionEvent interactionEvent)
           
 
Method Summary
 ValidityEvent getInteractionEvent()
          The event passed into the constructor.
 
Methods inherited from class org.nakedobjects.plugins.headless.applib.InteractionException
getAdvisorClass, getIdentifier
 
Methods inherited from class org.nakedobjects.applib.ApplicationException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

InvalidException

public InvalidException(InteractionEvent interactionEvent)
Method Detail

getInteractionEvent

public ValidityEvent getInteractionEvent()
Description copied from class: InteractionException
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.

Overrides:
getInteractionEvent in class InteractionException
Returns:


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