|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
fr.paris.lutece.plugins.stock.business.purchase.exception.PurchaseException
fr.paris.lutece.plugins.stock.business.purchase.exception.PurchaseOutOfStock
public class PurchaseOutOfStock
Exception thrown when quantity available for offer is not enough
| Constructor Summary | |
|---|---|
PurchaseOutOfStock(Integer purchaseId,
Integer quantityRequested,
Integer quantityAvailable,
String msg)
Instantiates a new purchase out of stock. |
|
PurchaseOutOfStock(Integer purchaseId,
String msg)
Instantiates a new purchase out of stock. |
|
| Method Summary | |
|---|---|
Integer |
getPurchaseId()
Gets the purchase id. |
Integer |
getQuantityAvailable()
Gets the quantity available. |
Integer |
getQuantityRequested()
Gets the quantity requested. |
void |
setPurchaseId(Integer purchaseId)
Sets the purchase id. |
void |
setQuantityAvailable(Integer quantityAvailable)
Sets the quantity available. |
void |
setQuantityRequested(Integer quantityRequested)
Sets the quantity requested. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PurchaseOutOfStock(Integer purchaseId,
String msg)
purchaseId - the purchase idmsg - the msg
public PurchaseOutOfStock(Integer purchaseId,
Integer quantityRequested,
Integer quantityAvailable,
String msg)
purchaseId - the purchase idquantityRequested - the quantity requestedquantityAvailable - the quantity availablemsg - the msg| Method Detail |
|---|
public Integer getPurchaseId()
getPurchaseId in class PurchaseExceptionpublic void setPurchaseId(Integer purchaseId)
setPurchaseId in class PurchaseExceptionpurchaseId - the purchaseId to setpublic Integer getQuantityRequested()
public void setQuantityRequested(Integer quantityRequested)
quantityRequested - the quantityRequested to setpublic Integer getQuantityAvailable()
public void setQuantityAvailable(Integer quantityAvailable)
quantityAvailable - the quantityAvailable to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||