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

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

public class PurchaseUnavailable
extends PurchaseException

General exception for forbidden purchase

Author:
abataille
See Also:
Serialized Form

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

PurchaseUnavailable

public PurchaseUnavailable(java.lang.Integer purchaseId,
                           java.lang.String msg)
Instantiates a new purchase unavailable.

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

getPurchaseId

public java.lang.Integer getPurchaseId()
Description copied from class: PurchaseException
Gets the purchase id.

Overrides:
getPurchaseId in class PurchaseException
Returns:
the purchaseId

setPurchaseId

public void setPurchaseId(java.lang.Integer purchaseId)
Description copied from class: PurchaseException
Sets the purchase id.

Overrides:
setPurchaseId in class PurchaseException
Parameters:
purchaseId - the purchaseId to set


Copyright © 2012 Mairie de Paris. All Rights Reserved.