Class ErrorCodedPropertyVetoException

All Implemented Interfaces:
ErrorCoded, HasRootCause,
Direct Known Subclasses:

public class ErrorCodedPropertyVetoException
extends java.beans.PropertyVetoException
implements ErrorCoded, HasRootCause

Exception used by PropertyVetoException to wrap failures. Clients can throw these.

$Id:,v 1.3 2003/03/21 14:32:21 jhoeller Exp $
Rod Johnson
See Also:
Serialized Form

Field Summary
static java.lang.String TYPE_MISMATCH_ERROR_CODE
Fields inherited from interface com.interface21.core.ErrorCoded
Constructor Summary
ErrorCodedPropertyVetoException(java.lang.String mesg, java.beans.PropertyChangeEvent e, java.lang.String errorCode)
          Creates new ErrorCodedPropertyVetoException.
Method Summary
 java.lang.String getErrorCode()
          Implementation of ErrorCoded interface.
 java.lang.Throwable getRootCause()
          Implementation of HasRootCause
 java.lang.String toString()
Methods inherited from class java.beans.PropertyVetoException
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


public static final java.lang.String TYPE_MISMATCH_ERROR_CODE
Constructor Detail


public ErrorCodedPropertyVetoException(java.lang.String mesg,
                                       java.beans.PropertyChangeEvent e,
                                       java.lang.String errorCode)
Creates new ErrorCodedPropertyVetoException. This signature will be called when either the caller has an object that has an ErrorCoded interface and they are calling us with that or if they want to use the ErrorCoded ability of this exception. NOTE: Mesg passed in will already have been "resolved". We will take the string passed in literally as is. This means that the caller of this method either created a literal string and passed it to us, OR the caller looked up the string value for a mesg themself in a msgCat BEFORE calling us.
Method Detail


public java.lang.String getErrorCode()
Implementation of ErrorCoded interface. Return the error code associated with this failure. The GUI can render this anyway it pleases, allowing for Int8ln etc.
Specified by:
getErrorCode in interface ErrorCoded
a String error code associated with this failure


public java.lang.Throwable getRootCause()
Implementation of HasRootCause
Specified by:
getRootCause in interface HasRootCause
Following copied from interface: com.interface21.core.HasRootCause
the root cause of this exception, or null if there was no root cause


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

Rod Johnson and Spring contributors 2001-2003.