public class IdAlreadyInUseException extends RuntimeException
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.
| Constructor and Description |
|---|
IdAlreadyInUseException()
Throws the message "singleton exception".
|
IdAlreadyInUseException(String message)
Throws a given message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IdAlreadyInUseException()
public IdAlreadyInUseException(String message)
message - The message to throw.Copyright © 2015. All rights reserved.