chemaxon.formats
Class MolFormatException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended bychemaxon.formats.MolFormatException
All Implemented Interfaces:
java.io.Serializable

public class MolFormatException
extends java.io.IOException

Something's wrong with a molecule file format.

Version:
5.0.1, 01/30/2008
Author:
Peter Csizmadia
See Also:
Serialized Form

Constructor Summary
MolFormatException()
          Creates a molecule format exception.
MolFormatException(java.lang.String s)
          Creates a molecule format exception with the specified message.
MolFormatException(java.lang.String s, java.lang.Throwable cause)
          Creates a molecule format exception with the specified message and cause.
MolFormatException(java.lang.Throwable cause)
          Creates a molecule format exception with the specified cause.
 
Method Summary
 java.lang.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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MolFormatException

public MolFormatException()
Creates a molecule format exception.


MolFormatException

public MolFormatException(java.lang.String s)
Creates a molecule format exception with the specified message.

Parameters:
s - the message

MolFormatException

public MolFormatException(java.lang.String s,
                          java.lang.Throwable cause)
Creates a molecule format exception with the specified message and cause.

Since:
Marvin 4.1, 03/09/2006

MolFormatException

public MolFormatException(java.lang.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 java.lang.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