uk.ac.man.bioinf.io
Class ParserException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--uk.ac.man.bioinf.io.ParserException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- InvalidSequenceTypeParserException, SequenceWriterException, UnknownElementException
- public class ParserException
- extends RuntimeException
A general exception thrown up when parsing a sequence. The concept
is to make this more specific by sub-classing this exception.
Created: Tue Jun 6 18:09:26 2000
- Version:
- $Id: ParserException.java,v 1.3 2001/04/11 17:04:43 lord Exp $
- Author:
- J Selley
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ParserException
public ParserException(int i)
ParserException
public ParserException(String message,
int i)
ParserException
public ParserException(int i,
String seq)
ParserException
public ParserException(String message,
int i,
String seq)
ParserException
public ParserException(String message,
int i,
String seq,
Identifier ident)
getPosition
public int getPosition()
- Returns the integer position in the sequence that caused the
exception.
- Returns:
- the location
getSequence
public String getSequence()
- Returns the sequence that caused the exception.
- Returns:
- the sequence
getIdentifier
public Identifier getIdentifier()