|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--anthill.storage.CapacityException
Base class for the exceptions thrown by Capacity.
| Constructor Summary | |
CapacityException()
Constructs a CapacityExeception with no detail message. |
|
CapacityException(long capacity,
long reaminingCapacity,
long requestedCapacity)
Constructs a CapacityExeception with the specified message. |
|
| Method Summary | |
long |
getCapacity()
Returns the initial capacity of the storage which raised this exception. |
long |
getRemainingCapacity()
Returns the remaining capacity of the storage which raised this exception. |
long |
getRequestedCapacity()
Returns the requested capacity for the resource whose insertion generated this exception. |
| 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 |
public CapacityException()
CapacityExeception with no detail message.
public CapacityException(long capacity,
long reaminingCapacity,
long requestedCapacity)
CapacityExeception with the specified message.
capacity - initial capacityrequestedCapacity - requested capacity| Method Detail |
public long getCapacity()
public long getRemainingCapacity()
public long getRequestedCapacity()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||