Package net.sf.basedb.core
Class QuotaException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.sf.basedb.core.BaseException
-
- net.sf.basedb.core.InvalidDataException
-
- net.sf.basedb.core.QuotaException
-
- All Implemented Interfaces:
Serializable
public class QuotaException extends InvalidDataException
This exception is thrown to signal that the user's quota has been exceeded and that anDiskConsumable
item cannot be saved.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Serialized Form
- Last modified
- $Date: 2009-04-06 14:52:39 +0200 (må, 06 apr 2009) $
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description QuotaException()
Create a newQuotaException
object.QuotaException(Location location, QuotaTypeData quotaType, long maxBytes, long currentBytes)
Create a newQuotaException
object.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QuotaException
public QuotaException()
Create a newQuotaException
object.
-
QuotaException
public QuotaException(Location location, QuotaTypeData quotaType, long maxBytes, long currentBytes)
Create a newQuotaException
object.- Parameters:
location
- The locationquotaType
- The quota typemaxBytes
- The maximum allowed number of bytescurrentBytes
- The currently used number of bytes
-
-