jsky.util
Class ReplaceablePropertyVetoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by jsky.util.ReplaceablePropertyVetoException
All Implemented Interfaces:
java.io.Serializable

public class ReplaceablePropertyVetoException
extends java.lang.RuntimeException

Extends the RunTimeException to provide capability similar to PropertyVetoException capabilities to property change handling. This implementation works off of RunTimeException and consequently does not require a user to add a new change handling method.

This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.

Version:
9/21/99
Author:
M. Fishman
See Also:
Serialized Form

Constructor Summary
ReplaceablePropertyVetoException(java.lang.Object vetoSource, java.lang.String vetoReasonType, java.lang.String mess, java.beans.PropertyChangeEvent evt)
          constructor
 
Method Summary
 java.beans.PropertyChangeEvent getPropertyChangeEvent()
          Gets the vetoed PropertyChangeEvent.
 java.lang.String getVetoReasonType()
          get the reasoning type for this veto exception
 java.lang.Object getVetoSource()
          get the source of the veto exception
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplaceablePropertyVetoException

public ReplaceablePropertyVetoException(java.lang.Object vetoSource,
                                        java.lang.String vetoReasonType,
                                        java.lang.String mess,
                                        java.beans.PropertyChangeEvent evt)
constructor

Parameters:
vetoSource - the object that is throwing the veto exception
vetoReasonType - the reason type for why the property change was vetoed
mess - Descriptive message
evt - A PropertyChangeEvent describing the vetoed change.
Method Detail

getPropertyChangeEvent

public java.beans.PropertyChangeEvent getPropertyChangeEvent()
Gets the vetoed PropertyChangeEvent.

Returns:
A PropertyChangeEvent describing the vetoed change.

getVetoSource

public java.lang.Object getVetoSource()
get the source of the veto exception


getVetoReasonType

public java.lang.String getVetoReasonType()
get the reasoning type for this veto exception


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable