org.knime.core.util
Class DuplicateKeyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.knime.core.util.DuplicateKeyException
All Implemented Interfaces:
Serializable

public class DuplicateKeyException
extends RuntimeException

This exception is thrown by the DuplicateChecker if a duplicate key has been detected.

Author:
Thorsten Meinl, University of Konstanz
See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 String getKey()
          Returns the duplicate key.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateKeyException

public DuplicateKeyException(String key)
Creates a new exception with predefined message.

Parameters:
key - the duplicate key

DuplicateKeyException

public DuplicateKeyException(String message,
                             String key)
Creates a new exception.

Parameters:
message - The exception message, may or may not include key
key - the duplicate key

DuplicateKeyException

public DuplicateKeyException(DuplicateKeyException cause)
Creates new exception based on a reference exception (which may have been generated by a different thread).

Parameters:
cause - The cause for this duplicate key exception.
Method Detail

getKey

public String getKey()
Returns the duplicate key.

Returns:
the key


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
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.