Class JsonIOException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by
                  extended by
All Implemented Interfaces:

public final class JsonIOException
extends JsonParseException

This exception is raised when Gson was unable to read an input stream or write to one.

Inderjeet Singh, Joel Leitch
See Also:
Serialized Form

Constructor Summary
JsonIOException(String msg)
JsonIOException(String msg, Throwable cause)
JsonIOException(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


public JsonIOException(String msg)


public JsonIOException(String msg,
                       Throwable cause)


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

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

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