Class ParseException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ParseException
    extends BioException
    ParseException should be thrown to indicate that there was a problem with parsing sequence information.
    Author:
    Matthew Pocock
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String newMessage​(java.lang.Class format, java.lang.String accession, java.lang.String identifier, java.lang.String comments, java.lang.String parseBlock)
      Make a new error message.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • newMessage

        public static java.lang.String newMessage​(java.lang.Class format,
                                                  java.lang.String accession,
                                                  java.lang.String identifier,
                                                  java.lang.String comments,
                                                  java.lang.String parseBlock)
        Make a new error message.
        Parameters:
        format - the format object that was doing the parsing
        accession - the accession number of the record that failed
        identifier - the identifier of the sequence that failed (eg the GI number for genbank)
        comments - any additional information
        parseBlock - the chunk of the file the parser was trying to parse when the error occured
        Returns:
        the formatted error message