JsonSyntaxException (Gson 2.2.3 API)
Date: 2013-04-12

com.google.gson

## Class JsonSyntaxException

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

- All Implemented Interfaces:
    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

    Constructors
    Constructor and Description
    `JsonSyntaxException(String msg)`
    `JsonSyntaxException(String msg, Throwable cause)`
    `JsonSyntaxException(Throwable cause)` Creates exception with the specified cause.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### JsonSyntaxException

          public JsonSyntaxException(String msg)

    - #### JsonSyntaxException

          public JsonSyntaxException(String msg,
                             Throwable cause)

    - #### JsonSyntaxException

          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.

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