com.interface21.beans
Class ErrorCodedPropertyVetoException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.beans.PropertyVetoException
|
+--com.interface21.beans.ErrorCodedPropertyVetoException
- All Implemented Interfaces:
- ErrorCoded, HasRootCause, java.io.Serializable
- Direct Known Subclasses:
- ParameterizableErrorCodedPropertyVetoException
- public class ErrorCodedPropertyVetoException
- extends java.beans.PropertyVetoException
- implements ErrorCoded, HasRootCause
Exception used by PropertyVetoException to wrap failures.
Clients can throw these.
- Version:
- $Id: ErrorCodedPropertyVetoException.java,v 1.3 2003/03/21 14:32:21 jhoeller Exp $
- Author:
- Rod Johnson
- See Also:
- Serialized Form
|
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 |
getPropertyChangeEvent |
| 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 |
TYPE_MISMATCH_ERROR_CODE
public static final java.lang.String TYPE_MISMATCH_ERROR_CODE
ErrorCodedPropertyVetoException
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.
getErrorCode
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
- Returns:
- a String error code associated with this failure
getRootCause
public java.lang.Throwable getRootCause()
- Implementation of HasRootCause
- Specified by:
getRootCause in interface HasRootCause
- Following copied from interface:
com.interface21.core.HasRootCause
- Returns:
- the root cause of this exception,
or null if there was no root cause
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Throwable
Rod Johnson and Spring contributors 2001-2003.