com.topcoder.shared.problem
Class DataValueParseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.topcoder.shared.problem.DataValueParseException
All Implemented Interfaces:
java.io.Serializable

public class DataValueParseException
extends java.lang.Exception

Represents an exception that occurred while parsing a data value.

See Also:
Serialized Form

Constructor Summary
DataValueParseException(java.lang.String message)
          Constructs the exception with the given message (line is set to 0 and column is set to 0).
DataValueParseException(java.lang.String message, int line, int column)
          Constructs the exception with the given message, line and column.
 
Method Summary
 int getColumn()
          Returns the column the exception occurred on.
 int getLine()
          Returns the line number the exception occurred on.
 java.lang.String getMessage()
          Returns the exception message.
 java.lang.String toString()
          Returns the exception text (message, line and columnn).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataValueParseException

public DataValueParseException(java.lang.String message)
Constructs the exception with the given message (line is set to 0 and column is set to 0).

Parameters:
message - the exception message.

DataValueParseException

public DataValueParseException(java.lang.String message,
                               int line,
                               int column)
Constructs the exception with the given message, line and column.

Parameters:
message - the exception message.
line - the line the exception occurred on.
column - the column the exception occurred on.
Method Detail

getMessage

public java.lang.String getMessage()
Returns the exception message.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the exception message.

getLine

public int getLine()
Returns the line number the exception occurred on.

Returns:
the line number the exception occurred on.

getColumn

public int getColumn()
Returns the column the exception occurred on.

Returns:
the column the exception occurred on.

toString

public java.lang.String toString()
Returns the exception text (message, line and columnn). Example: "Line 3: Column 1: ACME portable hole".

Line will not be included if equal to zero. Column will not be included if equal to zero.

Overrides:
toString in class java.lang.Throwable
Returns:
the exception text.