org.apache.commons.events.observable
Class ModificationVetoedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
event
protected final ModificationEvent event
- The source event
ModificationVetoedException
public ModificationVetoedException(String message,
ModificationEvent event)
- Constructor.
- Parameters:
message
- the text message, may be nullevent
- the observed event, should not be null
getEvent
public ModificationEvent getEvent()
- Gets the event that caused the veto.
- Returns:
- the event
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.