Package org.biojava.bio.seq.io
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.biojava.bio.BioException
org.biojava.bio.seq.io.ParseException
- All Implemented Interfaces:
Serializable
ParseException should be thrown to indicate that there was a problem with
parsing sequence information.
- Author:
- Matthew Pocock
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParseException
(String message) ParseException
(Throwable nested) ParseException
(Throwable nested, String message) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseException
public ParseException() -
ParseException
-
ParseException
-
ParseException
-
-
Method Details
-
newMessage
public static String newMessage(Class format, String accession, String identifier, String comments, String parseBlock) Make a new error message.- Parameters:
format
- the format object that was doing the parsingaccession
- the accession number of the record that failedidentifier
- the identifier of the sequence that failed (eg the GI number for genbank)comments
- any additional informationparseBlock
- the chunk of the file the parser was trying to parse when the error occured- Returns:
- the formatted error message
-