Package com.qiniu.common
Class QiniuException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.qiniu.common.QiniuException
-
- All Implemented Interfaces:
java.io.Serializable
public final class QiniuException extends java.io.IOException七牛SDK异常封装类,封装了http响应数据- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QiniuException(Response response)QiniuException(java.lang.Exception e)QiniuException(java.lang.Exception e, java.lang.String msg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcode()java.lang.Stringerror()booleanisUnrecoverable()static QiniuExceptionunrecoverable(java.lang.Exception e)static QiniuExceptionunrecoverable(java.lang.String msg)java.lang.Stringurl()
-
-
-
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()
-
-