org.netbeans.modules.bpel.model.api.events
Class VetoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.netbeans.modules.bpel.model.api.events.VetoException
All Implemented Interfaces:
java.io.Serializable

public class VetoException
extends java.lang.Exception

This class is intended for fired Exception about wrong change in Model was trying to perform. This action should be rolled back.

Author:
ads
See Also:
Serialized Form

Constructor Summary
VetoException(java.lang.String message, ChangeEvent event)
          Constructor for exception that contains message about wrong change.
 
Method Summary
 ChangeEvent getChangeEvent()
          Returns event that was trying to fire in model.
 
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

VetoException

public VetoException(java.lang.String message,
                     ChangeEvent event)
Constructor for exception that contains message about wrong change. Also it contains event that model trying to fire.

Parameters:
message - error message about wrong change.
event - event that model is tying to fire.
Method Detail

getChangeEvent

public ChangeEvent getChangeEvent()
Returns event that was trying to fire in model.

Returns:
subject event.