© 2001 BEA Systems, Inc.

com.bea.commerce.ebusiness.discount.mgmt
Class DiscountDeployException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.beasys.commerce.foundation.exception.ApplicationException
                    |
                    +--com.bea.commerce.ebusiness.discount.DiscountException
                          |
                          +--com.bea.commerce.ebusiness.discount.mgmt.DiscountDeployException
All Implemented Interfaces:
MessageCatalogException, java.io.Serializable

public class DiscountDeployException
extends DiscountException

Indicates that an application exception occurred that caused one or more discounts to fail to deploy. This class encapsulates the name of the set the discount(s) are from and a list of DeployFailure objects, one for each discount that failed to deploy. This exception will also indicate (in it's message) the number of discount that sucessfully deployed since when it is thrown the return parameter from DiscountMgmt.deploySet is not available.

See Also:
DiscountMgmt.deploySet(java.lang.String), DeployFailure, Serialized Form

Fields inherited from class com.bea.commerce.ebusiness.discount.DiscountException
MESSAGE_NAMESPACE
 
Fields inherited from class com.beasys.commerce.foundation.exception.ApplicationException
embeddedException, logMessages, userMessages
 
Constructor Summary
DiscountDeployException(java.lang.String messageKey, int sucessCount, java.lang.String setName, java.util.List deployFailureList)
          Class constructor taking key of the associated catalog message, the number of discounts that sucessfully deployed, the name of the set the discounts are from, and List of DeployFailure objects.
 
Method Summary
 java.util.List getErrorList()
          Gets the list of DeployFailure objects as a List
 java.lang.Object[] getErrorListArray()
          Gets a generic array of DeployFailure objects
 DeployFailure[] getErrorListAsArray()
          Gets a type specific array of DeployFailure objects
 java.lang.String getSetName()
          Gets the name of the set that was being deployed when the error(s) occurred that caused this exception to be thrown
 java.lang.String toString()
          Returns a String representation of this class.
 
Methods inherited from class com.beasys.commerce.foundation.exception.ApplicationException
addLogMessage, addLogMessage, addLogMessage, addMessage, addMessage, addMessage, addUserMessage, addUserMessage, addUserMessage, getEmbeddedException, getLocalizedMessage, getLogMessage, getLogMessages, getMessage, getUserMessage, getUserMessages
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiscountDeployException

public DiscountDeployException(java.lang.String messageKey,
                               int sucessCount,
                               java.lang.String setName,
                               java.util.List deployFailureList)
Class constructor taking key of the associated catalog message, the number of discounts that sucessfully deployed, the name of the set the discounts are from, and List of DeployFailure objects.
Parameters:
messageKey - the associated catalog message key
sucessCount - the number of discounts that sucessfully deployed, this will be used in the exception's message
setName - the anme of the set the discounts are from
deployFailureList - a list of DeployFailure objects, one for each discount that failed to deploy
Method Detail

getSetName

public java.lang.String getSetName()
Gets the name of the set that was being deployed when the error(s) occurred that caused this exception to be thrown
Returns:
the name of the set

getErrorListArray

public java.lang.Object[] getErrorListArray()
Gets a generic array of DeployFailure objects
Returns:
a generic array of DeployFailure objects

getErrorListAsArray

public DeployFailure[] getErrorListAsArray()
Gets a type specific array of DeployFailure objects
Returns:
a type specific array of DeployFailure objects

getErrorList

public java.util.List getErrorList()
Gets the list of DeployFailure objects as a List
Returns:
List of DeployFailure objects

toString

public java.lang.String toString()
Returns a String representation of this class. It includes the set name and the list of DeployFailure objects
Overrides:
toString in class ApplicationException
Returns:
a String representation of this class

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved