Top Description Fields Constructors
com.google.gson

public final Class JsonSyntaxException

extends JsonParseException
Class Inheritance

This exception is raised when Gson attempts to read (or write) a malformed JSON element.
Authors
Inderjeet Singh, Joel Leitch

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
public
public
JsonSyntaxException(Throwable
root exception that caused this exception to be thrown.
cause
)

Creates exception with the specified cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.google.gson.JsonParseException.serialVersionUID.

Constructor Detail

JsonSyntaxExceptionback to summary
public JsonSyntaxException(String msg)
JsonSyntaxExceptionback to summary
public JsonSyntaxException(String msg, Throwable cause)
JsonSyntaxExceptionback to summary
public JsonSyntaxException(Throwable cause)

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

Parameters
cause:Throwable

root exception that caused this exception to be thrown.