de.hagenah.diplomacy.game
Class JudgeParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.hagenah.diplomacy.game.JudgeParseException
All Implemented Interfaces:
java.io.Serializable

public class JudgeParseException
extends java.lang.Exception

Thrown to indicate that a error occured while parsing the turn.

See Also:
Serialized Form

Constructor Summary
JudgeParseException(java.lang.String s, int line)
          Constructs an Exception with the specified detail message.
 
Method Summary
 int getLineNumber()
          Returns the line in which the error occured.
 
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

JudgeParseException

public JudgeParseException(java.lang.String s,
                           int line)
Constructs an Exception with the specified detail message.

Parameters:
s - The detail message.
line - The line in which the error occured.
Method Detail

getLineNumber

public int getLineNumber()
Returns the line in which the error occured.

Returns:
The line in which the error occured.