Class 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:
  • Constructor Details

    • 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 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

      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