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 SummaryConstructorsConstructorDescriptionCreates 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 SummaryModifier and TypeMethodDescriptionGets the final cause of the exception.intGets the line number relative to the first line of the file.intGets the line number relative to the first line of the record.voidsetLineNumberInFile(int l) Sets the line number relative to the first line of the file.voidsetLineNumberInRecord(int l) Sets the line number relative to the first line of the record.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
MolFormatExceptionpublic MolFormatException()Creates a molecule format exception.
- 
MolFormatExceptionCreates a molecule format exception with the specified message.- Parameters:
- s- the message
 
- 
MolFormatExceptionCreates a molecule format exception with the specified message and cause.- Since:
- Marvin 4.1, 03/09/2006
 
- 
MolFormatExceptionCreates a molecule format exception with the specified cause.- Since:
- Marvin 4.1, 03/09/2006
 
 
- 
- 
Method Details- 
getLineNumberInRecordpublic 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
 
- 
setLineNumberInRecordpublic 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
 
- 
getLineNumberInFilepublic 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
 
- 
setLineNumberInFilepublic 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
 
- 
getFinalCauseGets the final cause of the exception.- Returns:
- the final cause or thisif there is no cause
- Since:
- Marvin 5.0.1, 01/30/2008
 
 
-