public class DuplicateKeyException extends RuntimeException
DuplicateChecker
if a duplicate key
has been detected.Constructor and Description |
---|
DuplicateKeyException(DuplicateKeyException cause)
Creates new exception based on a reference exception (which may have
been generated by a different thread).
|
DuplicateKeyException(String key)
Creates a new exception with predefined message.
|
DuplicateKeyException(String message,
String key)
Creates a new exception.
|
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Returns the duplicate key.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DuplicateKeyException(String key)
key
- the duplicate keypublic DuplicateKeyException(String message, String key)
message
- The exception message, may or may not include
key
key
- the duplicate keypublic DuplicateKeyException(DuplicateKeyException cause)
cause
- The cause for this duplicate key exception.public String getKey()
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.