com.bea.commerce.ebusiness.discount.mgmt
Class DeployFailure
java.lang.Object
|
+--com.bea.commerce.ebusiness.discount.mgmt.DeployFailure
- All Implemented Interfaces:
- java.io.Serializable
- public class DeployFailure
- extends java.lang.Object
- implements java.io.Serializable
This is a wrapper class used to encapsulate errors that occur during the
deployment of discount sets. This class simply encapsulates the name of
the discount and the error that caused it to not be deployed. When one or
more errors occur during the deployment of a discount set a
DiscountDeployException
containing a list of DeployFailure
objects is thrown. There will be one DeployFailure
in the list
for each discount that failed to be deployed.
- See Also:
DiscountMgmt.deploySet(java.lang.String)
,
DiscountDeployException
, Serialized Form
Constructor Summary |
DeployFailure(java.lang.String discountName,
java.lang.String error)
Constructor |
Method Summary |
java.lang.String |
getDiscountName()
Gets the name of the discount that failed to deploy |
java.lang.String |
getError()
Gets the error that caused the discount to fail to deploy |
java.lang.String |
toString()
Returns a String representation of this DeployFailure |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DeployFailure
public DeployFailure(java.lang.String discountName,
java.lang.String error)
- Constructor
- Parameters:
discountName
- the name of the discount that failed to deployerror
- the error that caused the discount to failed to deploy
getDiscountName
public java.lang.String getDiscountName()
- Gets the name of the discount that failed to deploy
- Returns:
- the name of the discount that failed to deploy
getError
public java.lang.String getError()
- Gets the error that caused the discount to fail to deploy
- Returns:
- the error that caused the discount to fail to deploy
toString
public java.lang.String toString()
- Returns a
String
representation of this DeployFailure
- Overrides:
toString
in class java.lang.Object
- Returns:
- a
String
representation of this DeployFailure
Copyright © 2001 BEA Systems, Inc. All Rights Reserved