public class InventoryUnavailableException extends Exception
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
quantityAvailable |
protected Integer |
quantityRequested |
protected Long |
skuId |
| Constructor and Description |
|---|
InventoryUnavailableException(Long skuId,
Integer quantityRequested,
Integer quantityAvailable) |
InventoryUnavailableException(String msg) |
InventoryUnavailableException(String arg0,
Long skuId,
Integer quantityRequested,
Integer quantityAvailable) |
InventoryUnavailableException(String msg,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
int |
getQuantityAvailable() |
int |
getQuantityRequested() |
Long |
getSkuId() |
void |
setQuantityAvailable(int quantityAvailable) |
void |
setQuantityRequested(int quantityRequested) |
void |
setSkuId(Long skuId) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected Long skuId
protected Integer quantityRequested
protected Integer quantityAvailable
public InventoryUnavailableException(String msg)
public InventoryUnavailableException(Long skuId, Integer quantityRequested, Integer quantityAvailable)
public InventoryUnavailableException(String arg0, Long skuId, Integer quantityRequested, Integer quantityAvailable)
public Long getSkuId()
public void setSkuId(Long skuId)
public int getQuantityRequested()
public void setQuantityRequested(int quantityRequested)
public int getQuantityAvailable()
public void setQuantityAvailable(int quantityAvailable)
Copyright © 2014. All Rights Reserved.