Package chemaxon.formats
Class MolFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
chemaxon.formats.MolFormatException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NameFormatException
Something's wrong with a molecule file format.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a molecule format exception.Creates a molecule format exception with the specified message.MolFormatException
(String s, Throwable cause) Creates a molecule format exception with the specified message and cause.MolFormatException
(Throwable cause) Creates a molecule format exception with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionGets the final cause of the exception.int
Gets the line number relative to the first line of the file.int
Gets the line number relative to the first line of the record.void
setLineNumberInFile
(int l) Sets the line number relative to the first line of the file.void
setLineNumberInRecord
(int l) Sets the line number relative to the first line of the record.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MolFormatException
public MolFormatException()Creates a molecule format exception. -
MolFormatException
Creates a molecule format exception with the specified message.- Parameters:
s
- the message
-
MolFormatException
Creates a molecule format exception with the specified message and cause.- Since:
- Marvin 4.1, 03/09/2006
-
MolFormatException
Creates a molecule format exception with the specified cause.- Since:
- Marvin 4.1, 03/09/2006
-
-
Method Details
-
getLineNumberInRecord
public int getLineNumberInRecord()Gets the line number relative to the first line of the record.- Returns:
- the line number
- Since:
- Marvin 5.0, 05/28/2007
-
setLineNumberInRecord
public void setLineNumberInRecord(int l) Sets the line number relative to the first line of the record.- Parameters:
l
- the line number- Since:
- Marvin 5.0, 05/28/2007
-
getLineNumberInFile
public int getLineNumberInFile()Gets the line number relative to the first line of the file.- Returns:
- the line number
- Since:
- Marvin 5.0, 05/28/2007
-
setLineNumberInFile
public void setLineNumberInFile(int l) Sets the line number relative to the first line of the file.- Parameters:
l
- the line number- Since:
- Marvin 5.0, 05/28/2007
-
getFinalCause
Gets the final cause of the exception.- Returns:
- the final cause or
this
if there is no cause - Since:
- Marvin 5.0.1, 01/30/2008
-