Package com.pubnub.api
Class PubNubError
- java.lang.Object
-
- com.pubnub.api.PubNubError
-
public class PubNubError extends java.lang.Object
PubNubError 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 class
PubNubError.PubNubErrorBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PubNubError.PubNubErrorBuilder
builder()
int
getErrorCode()
int
getErrorCodeExtended()
com.google.gson.JsonElement
getErrorObject()
java.lang.String
getErrorString()
PubNub supplied explanation of the error.java.lang.String
getMessage()
includes a message from the thrown exception (if any.)java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-