com.google.gson
Class JsonSyntaxException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.google.gson.JsonParseException
                  extended by com.google.gson.JsonSyntaxException
All Implemented Interfaces:
java.io.Serializable

public final class JsonSyntaxException
extends JsonParseException

This exception is raised when Gson attempts to read (or write) a malformed JSON element.

Author:
Inderjeet Singh, Joel Leitch
See Also:
Serialized Form

Constructor Summary
JsonSyntaxException(java.lang.String msg)
           
JsonSyntaxException(java.lang.String msg, java.lang.Throwable cause)
           
JsonSyntaxException(java.lang.Throwable cause)
          Creates exception with the specified cause.
 
Method Summary
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonSyntaxException

public JsonSyntaxException(java.lang.String msg)

JsonSyntaxException

public JsonSyntaxException(java.lang.String msg,
                           java.lang.Throwable cause)

JsonSyntaxException

public JsonSyntaxException(java.lang.Throwable cause)
Creates exception with the specified cause. Consider using JsonSyntaxException(String, Throwable) instead if you can describe what actually happened.

Parameters:
cause - root exception that caused this exception to be thrown.


Copyright © 2008-2011 Google, Inc.. All Rights Reserved.