fr.paris.lutece.plugins.stock.business.purchase.exception
Class PurchaseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by fr.paris.lutece.plugins.stock.business.purchase.exception.PurchaseException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PurchaseOutOfStock, PurchaseSessionExpired, PurchaseUnavailable

public class PurchaseException
extends java.lang.Exception

Exceptions thrown while purchase procedure

See Also:
Serialized Form

Constructor Summary
PurchaseException(java.lang.Integer purchaseId, java.lang.String msg)
          Instantiates a new purchase exception.
 
Method Summary
 java.lang.Integer getPurchaseId()
          Gets the purchase id.
 void setPurchaseId(java.lang.Integer thePurchaseId)
          Sets the purchase id.
 
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

PurchaseException

public PurchaseException(java.lang.Integer purchaseId,
                         java.lang.String msg)
Instantiates a new purchase exception.

Parameters:
purchaseId - the purchase id
msg - the msg
Method Detail

getPurchaseId

public java.lang.Integer getPurchaseId()
Gets the purchase id.

Returns:
the purchaseId

setPurchaseId

public void setPurchaseId(java.lang.Integer thePurchaseId)
Sets the purchase id.

Parameters:
thePurchaseId - the purchase id to set


Copyright © 2012 Mairie de Paris. All Rights Reserved.