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
@PublicAPI public class MolFormatException extends IOException
Something's wrong with a molecule file format.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MolFormatException()
Creates a molecule format exception.MolFormatException(String s)
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getFinalCause()
Gets the final cause of the exception.int
getLineNumberInFile()
Gets the line number relative to the first line of the file.int
getLineNumberInRecord()
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 Detail
-
MolFormatException
public MolFormatException()
Creates a molecule format exception.
-
MolFormatException
public MolFormatException(String s)
Creates a molecule format exception with the specified message.- Parameters:
s
- the message
-
MolFormatException
public MolFormatException(String s, Throwable cause)
Creates a molecule format exception with the specified message and cause.- Since:
- Marvin 4.1, 03/09/2006
-
MolFormatException
public MolFormatException(Throwable cause)
Creates a molecule format exception with the specified cause.- Since:
- Marvin 4.1, 03/09/2006
-
-
Method Detail
-
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
public Throwable 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
-
-