org.apache.commons.events.observable
Class ModificationVetoedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by org.apache.commons.events.observable.ModificationVetoedException
All Implemented Interfaces:
Serializable

public class ModificationVetoedException
extends IllegalArgumentException

Exception thrown when a modification to a collection is vetoed. It extends IllegalArgumentException for compatibility with the collections API.

Since:
Commons Events 1.0
Version:
$Revision: 155443 $ $Date: 2005-02-26 13:19:51 +0000 (Sat, 26 Feb 2005) $
Author:
Stephen Colebourne
See Also:
Serialized Form

Field Summary
protected  ModificationEvent event
          The source event
 
Constructor Summary
ModificationVetoedException(String message, ModificationEvent event)
          Constructor.
 
Method Summary
 ModificationEvent getEvent()
          Gets the event that caused the veto.
 
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
 

Field Detail

event

protected final ModificationEvent event
The source event

Constructor Detail

ModificationVetoedException

public ModificationVetoedException(String message,
                                   ModificationEvent event)
Constructor.

Parameters:
message - the text message, may be null
event - the observed event, should not be null
Method Detail

getEvent

public ModificationEvent getEvent()
Gets the event that caused the veto.

Returns:
the event


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.