org.openscience.cdk.exception
Class CDKException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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 exceptioncause - the Throwable that triggered this CDKException