org.glassfish.jersey.media.json.internal.reader
Class JsonFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.glassfish.jersey.media.json.internal.reader.JsonFormatException
All Implemented Interfaces:
java.io.Serializable

public class JsonFormatException
extends java.lang.RuntimeException

JSON formating exception

Author:
Martin Matula
See Also:
Serialized Form

Constructor Summary
JsonFormatException(java.lang.String text, int line, int column, java.lang.String message)
          Create new JSON formatting exception.
 
Method Summary
 int getErrorColumn()
          Get the error column.
 int getErrorLine()
          Get the error line.
 java.lang.String getErrorToken()
          Get the error token.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

JsonFormatException

public JsonFormatException(java.lang.String text,
                           int line,
                           int column,
                           java.lang.String message)
Create new JSON formatting exception.

Parameters:
text - error token.
line - error line.
column - error column.
message - error message.
Method Detail

getErrorToken

public java.lang.String getErrorToken()
Get the error token.

Returns:
error token.

getErrorLine

public int getErrorLine()
Get the error line.

Returns:
error line.

getErrorColumn

public int getErrorColumn()
Get the error column.

Returns:
error column.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.