Package net.ggtools.grand.exceptions
Class DuplicateElementException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.ggtools.grand.exceptions.GrandException
-
- net.ggtools.grand.exceptions.DuplicateElementException
-
- All Implemented Interfaces:
Serializable
public class DuplicateElementException extends GrandException
Exception raised when trying to create two elements with the same key in a container. For instance two nodes with the same name in one graph.- Author:
- Christophe Labouisse
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DuplicateElementException()
Creates a new exception.DuplicateElementException(String message)
Creates a new exception.DuplicateElementException(String message, Throwable cause)
Creates a new exception.DuplicateElementException(Throwable cause)
Creates a new exception.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DuplicateElementException
public DuplicateElementException()
Creates a new exception.
-
DuplicateElementException
public DuplicateElementException(String message)
Creates a new exception.- Parameters:
message
- explanatory message of the exception cause.
-
DuplicateElementException
public DuplicateElementException(String message, Throwable cause)
Creates a new exception.- Parameters:
message
- explanatory message of the exception cause.cause
- root cause.
-
DuplicateElementException
public DuplicateElementException(Throwable cause)
Creates a new exception.- Parameters:
cause
- root cause
-
-