Class JsonIOException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class JsonIOException
    extends JsonParseException
    This exception is raised when Gson was unable to read an input stream or write to one.
    Author:
    Inderjeet Singh, Joel Leitch
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      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

        clone, equals, finalize, 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.
        Parameters:
        cause - root exception that caused this exception to be thrown.