com.interface21.beans
Class ParameterizableErrorCodedPropertyVetoException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.beans.PropertyVetoException
                    |
                    +--com.interface21.beans.ErrorCodedPropertyVetoException
                          |
                          +--com.interface21.beans.ParameterizableErrorCodedPropertyVetoException
All Implemented Interfaces:
ErrorCoded, HasRootCause, ParameterizableErrorCoded, java.io.Serializable

public class ParameterizableErrorCodedPropertyVetoException
extends ErrorCodedPropertyVetoException
implements ParameterizableErrorCoded

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

Version:
$Id: ParameterizableErrorCodedPropertyVetoException.java,v 1.2 2003/03/21 14:32:22 jhoeller Exp $
Author:
Tony Falabella
See Also:
Serialized Form

Fields inherited from class com.interface21.beans.ErrorCodedPropertyVetoException
TYPE_MISMATCH_ERROR_CODE
 
Fields inherited from interface com.interface21.core.ErrorCoded
UNCODED
 
Constructor Summary
ParameterizableErrorCodedPropertyVetoException(java.lang.String mesg, java.beans.PropertyChangeEvent e, java.lang.String errorCode, java.lang.Object[] errorArgs)
          Creates new ErrorCodedPropertyVetoException.
 
Method Summary
 java.lang.Object[] getErrorArgs()
          Implementation of ParameterizableErrorCoded interface.
 java.lang.String toString()
           
 
Methods inherited from class com.interface21.beans.ErrorCodedPropertyVetoException
getErrorCode, getRootCause
 
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
 
Methods inherited from interface com.interface21.core.ErrorCoded
getErrorCode
 

Constructor Detail

ParameterizableErrorCodedPropertyVetoException

public ParameterizableErrorCodedPropertyVetoException(java.lang.String mesg,
                                                      java.beans.PropertyChangeEvent e,
                                                      java.lang.String errorCode,
                                                      java.lang.Object[] errorArgs)
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

getErrorArgs

public java.lang.Object[] getErrorArgs()
Implementation of ParameterizableErrorCoded interface.
Specified by:
getErrorArgs in interface ParameterizableErrorCoded
Returns:
An array of objects to be used as params to replace placeholders within the errorCode message text.

toString

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


Rod Johnson and Spring contributors 2001-2003.