public final class

JsonSyntaxException

extends JsonParseException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.google.gson.JsonParseException
           ↳ com.google.gson.JsonSyntaxException

Class Overview

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

Summary

Public Constructors
JsonSyntaxException(String msg)
JsonSyntaxException(String msg, Throwable cause)
JsonSyntaxException(Throwable cause)
Creates exception with the specified cause.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public JsonSyntaxException (String msg)

public JsonSyntaxException (String msg, Throwable cause)

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 root exception that caused this exception to be thrown.