Class JsonIOException

  • 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.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      JsonIOException​(java.lang.String msg)  
      JsonIOException​(java.lang.String msg, java.lang.Throwable cause)  
      JsonIOException​(java.lang.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

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JsonIOException

        public JsonIOException​(java.lang.String msg)
      • JsonIOException

        public JsonIOException​(java.lang.String msg,
                               java.lang.Throwable cause)
      • JsonIOException

        public JsonIOException​(java.lang.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.