Class QiniuException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class QiniuException
    extends java.io.IOException
    七牛SDK异常封装类,封装了http响应数据
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int code()  
      java.lang.String error()  
      boolean isUnrecoverable()  
      static QiniuException unrecoverable​(java.lang.Exception e)  
      static QiniuException unrecoverable​(java.lang.String msg)  
      java.lang.String url()  
      • 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
    • Field Detail

      • response

        public final Response response
    • Constructor Detail

      • QiniuException

        public QiniuException​(Response response)
      • QiniuException

        public QiniuException​(java.lang.Exception e)
      • QiniuException

        public QiniuException​(java.lang.Exception e,
                              java.lang.String msg)
    • Method Detail

      • unrecoverable

        public static QiniuException unrecoverable​(java.lang.Exception e)
      • unrecoverable

        public static QiniuException unrecoverable​(java.lang.String msg)
      • url

        public java.lang.String url()
      • code

        public int code()
      • isUnrecoverable

        public boolean isUnrecoverable()
      • error

        public java.lang.String error()