Package com.pubnub.api
Class PubNubError
- java.lang.Object
-
- com.pubnub.api.PubNubError
-
public class PubNubError extends java.lang.ObjectPubNubError object is passed to errorCallback. It contains details of error, like error code, error string, and optional message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPubNubError.PubNubErrorBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PubNubError.PubNubErrorBuilderbuilder()intgetErrorCode()intgetErrorCodeExtended()com.google.gson.JsonElementgetErrorObject()java.lang.StringgetErrorString()PubNub supplied explanation of the error.java.lang.StringgetMessage()includes a message from the thrown exception (if any.)java.lang.StringtoString()
-
-
-
Method Detail
-
builder
public static PubNubError.PubNubErrorBuilder builder()
-
getErrorCode
public int getErrorCode()
-
getErrorCodeExtended
public int getErrorCodeExtended()
-
getErrorObject
public com.google.gson.JsonElement getErrorObject()
-
getMessage
public java.lang.String getMessage()
includes a message from the thrown exception (if any.)
-
getErrorString
public java.lang.String getErrorString()
PubNub supplied explanation of the error.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-