org.silverpeas.quota.exception
Class QuotaException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.stratelia.webactiv.util.exception.SilverpeasException
              extended by org.silverpeas.quota.exception.QuotaException
All Implemented Interfaces:
FromModule, WithNested, Serializable
Direct Known Subclasses:
QuotaFullException, QuotaNotEnoughException, QuotaOutOfBoundsException

public class QuotaException
extends SilverpeasException

Author:
Yohann Chastagnier
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.stratelia.webactiv.util.exception.SilverpeasException
ERROR, FATAL, WARNING
 
Constructor Summary
QuotaException(Exception exception)
          Default constructor
QuotaException(Quota quota, String messageSuffix)
          Default constructor
QuotaException(Quota quota, String messageSuffix, Exception exception)
          Default constructor
 
Method Summary
 String getModule()
          This function must be defined by the Classes that herit from this one
 Quota getQuota()
           
 
Methods inherited from class com.stratelia.webactiv.util.exception.SilverpeasException
getChainedExceptions, getErrorLevel, getExtraInfos, getMessageLang, getMessageLang, getNested, printStackTrace, printStackTrace, printStackTrace, traceException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuotaException

public QuotaException(Quota quota,
                      String messageSuffix)
Default constructor

Parameters:
quota -
messageSuffix -

QuotaException

public QuotaException(Quota quota,
                      String messageSuffix,
                      Exception exception)
Default constructor

Parameters:
quota -
messageSuffix -
exception -

QuotaException

public QuotaException(Exception exception)
Default constructor

Parameters:
quota -
messageSuffix -
Method Detail

getModule

public String getModule()
Description copied from class: SilverpeasException
This function must be defined by the Classes that herit from this one

Specified by:
getModule in interface FromModule
Specified by:
getModule in class SilverpeasException
Returns:
The SilverTrace's module name

getQuota

public Quota getQuota()
Returns:
the quota


Copyright © 2016 Silverpeas. All Rights Reserved.