org.openscience.cdk.exception
Class CDKException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.openscience.cdk.exception.CDKException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DescriptorException, InvalidSmilesException, NoSuchAtomException, NoSuchAtomTypeException, UnsupportedChemObjectException

@TestClass(value="org.openscience.cdk.exception.CDKExceptionTest")
public class CDKException
extends Exception

Exception that is thrown by CDK classes when some problem has occured.

See Also:
Serialized Form
Belongs to CDK module:
core
Source code:
cdk-1.4.x

Constructor Summary
CDKException(String message)
          Constructs a new CDKException with the given message.
CDKException(String message, Throwable cause)
          Constructs a new CDKException with the given message and the Exception as 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CDKException

@TestMethod(value="testCDKException_String")
public CDKException(String message)
Constructs a new CDKException with the given message.

Parameters:
message - for the constructed exception

CDKException

@TestMethod(value="testCDKException_String_Throwable")
public CDKException(String message,
                                    Throwable cause)
Constructs a new CDKException with the given message and the Exception as cause.

Parameters:
message - for the constructed exception
cause - the Throwable that triggered this CDKException