com.j_spaces.core
Class MemoryShortageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.j_spaces.core.MemoryShortageException
All Implemented Interfaces:
Serializable

public class MemoryShortageException
extends RuntimeException

This Exception indicates that the space server process reached the predefined percentage usage ratio.

See Also:
Serialized Form

Constructor Summary
MemoryShortageException(String spaceName)
          Constructor
 
Method Summary
 String getSpaceName()
           
 String toString()
          Return the exception message
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemoryShortageException

public MemoryShortageException(String spaceName)
Constructor

Parameters:
spaceName - the name of the space that cause this exception
Method Detail

getSpaceName

public String getSpaceName()

toString

public String toString()
Return the exception message

Overrides:
toString in class Throwable
Returns:
"Memory shortage in space: " + spaceName