Package com.pubnub.api
Class PubNubException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.pubnub.api.PubNubException
-
- All Implemented Interfaces:
java.io.Serializable
public class PubNubException extends java.lang.Exception- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPubNubException.PubNubExceptionBuilder
-
Constructor Summary
Constructors Constructor Description PubNubException(java.lang.String errormsg, PubNubError pubnubError, com.google.gson.JsonElement jso, java.lang.String response, int statusCode, retrofit2.Call affectedCall, java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PubNubException.PubNubExceptionBuilderbuilder()java.lang.ThrowablegetCause()java.lang.StringgetErrormsg()com.google.gson.JsonElementgetJso()java.lang.StringgetMessage()PubNubErrorgetPubnubError()java.lang.StringgetResponse()intgetStatusCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
PubNubException
public PubNubException(java.lang.String errormsg, PubNubError pubnubError, com.google.gson.JsonElement jso, java.lang.String response, int statusCode, retrofit2.Call affectedCall, java.lang.Throwable cause)
-
-
Method Detail
-
getCause
public java.lang.Throwable getCause()
- Overrides:
getCausein classjava.lang.Throwable
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
builder
public static PubNubException.PubNubExceptionBuilder builder()
-
getErrormsg
public java.lang.String getErrormsg()
-
getPubnubError
public PubNubError getPubnubError()
-
getJso
public com.google.gson.JsonElement getJso()
-
getResponse
public java.lang.String getResponse()
-
getStatusCode
public int getStatusCode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-