de.mpi_bremen.mgg.FastaValidator
Class InvalidCharacterException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.mpi_bremen.mgg.FastaValidator.FastaValidatorException
              extended by de.mpi_bremen.mgg.FastaValidator.InvalidCharacterException
All Implemented Interfaces:
java.io.Serializable

public class InvalidCharacterException
extends FastaValidatorException

Specialization of FastaValidatorException, which is thrown when an invalid character occurs

Author:
Jost Waldmann
See Also:
Serialized Form

Constructor Summary
InvalidCharacterException(java.lang.String s, java.lang.String character, int line)
          Constructs an InvalidCharacterException.
 
Method Summary
 java.lang.String getCharacter()
          Returns the invalid character which caused the error.
 int getLine()
          Returns the line number of the error.
 
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

InvalidCharacterException

public InvalidCharacterException(java.lang.String s,
                                 java.lang.String character,
                                 int line)
Constructs an InvalidCharacterException. Sets internal variables (_line and _character).

Parameters:
s - the errormessage
character - the character which caused the error
line - the line number where the error occured (starting with 0)
Method Detail

getLine

public int getLine()
Returns the line number of the error.


getCharacter

public java.lang.String getCharacter()
Returns the invalid character which caused the error.