org.graphstream.graph
Class IdAlreadyInUseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.graphstream.graph.IdAlreadyInUseException
All Implemented Interfaces:
Serializable

public class IdAlreadyInUseException
extends RuntimeException

Singleton exception.

This exception can be raised when a class instance should be unique in one context, but was instantiated several times. This can be used in a "singleton" pattern, but also in set classes (containers) when the same element has been inserted multiple times but should not.

Since:
19990811
See Also:
Serialized Form

Constructor Summary
IdAlreadyInUseException()
          Throws the message "singleton exception".
IdAlreadyInUseException(String message)
          Throws a given message.
 
Method Summary
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdAlreadyInUseException

public IdAlreadyInUseException()
Throws the message "singleton exception".


IdAlreadyInUseException

public IdAlreadyInUseException(String message)
Throws a given message.

Parameters:
message - The message to throw.


Copyright © 2012. All Rights Reserved.