org.knime.core.node
Class InvalidSettingsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.knime.core.node.InvalidSettingsException
All Implemented Interfaces:
Serializable

public class InvalidSettingsException
extends Exception

This exception is thrown during load and save settings within the dialog's pane and model to indicate that the parameters set are not valid and can't be applied. This exception can be catched in order to show the problem in the settings.

Author:
Peter Ohl, University of Konstanz
See Also:
NodeDialogPane, NodeModel, Serialized Form

Constructor Summary
InvalidSettingsException(String s)
          Constructs an InvalidSettingsException with the specified detail message.
InvalidSettingsException(String msg, Throwable cause)
          Constructs an InvalidSettingsException with the specified detail message and a cause.
InvalidSettingsException(Throwable cause)
          Constructs an InvalidSettingsException with the specified cause.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidSettingsException

public InvalidSettingsException(String s)
Constructs an InvalidSettingsException with the specified detail message. Use a helpful message here as it will be displayed to the user, and it is the only hint ones understands to actual the problem.

Parameters:
s - the detail message.

InvalidSettingsException

public InvalidSettingsException(Throwable cause)
Constructs an InvalidSettingsException with the specified cause.

Parameters:
cause - the original cause of the execption

InvalidSettingsException

public InvalidSettingsException(String msg,
                                Throwable cause)
Constructs an InvalidSettingsException with the specified detail message and a cause. Use a helpful message here as it will be displayed to the user, and it is the only hint ones understands to actual the problem.

Parameters:
msg - the detail message
cause - the root cause


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.