MalformedJsonException (Gson 2.3 API)
Date: 2014-08-11

com.google.gson.stream

## Class MalformedJsonException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.io.IOException
      - - com.google.gson.stream.MalformedJsonException

- All Implemented Interfaces:
    Serializable

      public final class MalformedJsonException
      extends IOException

  Thrown when a reader encounters malformed JSON. Some syntax errors can be ignored by calling `JsonReader.setLenient(boolean)`.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MalformedJsonException(String msg)`
    `MalformedJsonException(String msg, Throwable throwable)`
    `MalformedJsonException(Throwable throwable)`

  - ### 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

    - #### MalformedJsonException

          public MalformedJsonException(String msg)

    - #### MalformedJsonException

          public MalformedJsonException(String msg,
                                        Throwable throwable)

    - #### MalformedJsonException

          public MalformedJsonException(Throwable throwable)

Copyright © 2008–2014 Google, Inc.. All rights reserved.