Package com.pubnub.api
Class PubNubError.PubNubErrorBuilder
- java.lang.Object
-
- com.pubnub.api.PubNubError.PubNubErrorBuilder
-
- Enclosing class:
- PubNubError
public static class PubNubError.PubNubErrorBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PubNubError
build()
PubNubError.PubNubErrorBuilder
errorCode(int errorCode)
PubNubError.PubNubErrorBuilder
errorCodeExtended(int errorCodeExtended)
PubNubError.PubNubErrorBuilder
errorObject(com.google.gson.JsonElement errorObject)
PubNubError.PubNubErrorBuilder
errorString(java.lang.String errorString)
PubNub supplied explanation of the error.PubNubError.PubNubErrorBuilder
message(java.lang.String message)
includes a message from the thrown exception (if any.)java.lang.String
toString()
-
-
-
Method Detail
-
errorCode
public PubNubError.PubNubErrorBuilder errorCode(int errorCode)
- Returns:
this
.
-
errorCodeExtended
public PubNubError.PubNubErrorBuilder errorCodeExtended(int errorCodeExtended)
- Returns:
this
.
-
errorObject
public PubNubError.PubNubErrorBuilder errorObject(com.google.gson.JsonElement errorObject)
- Returns:
this
.
-
message
public PubNubError.PubNubErrorBuilder message(java.lang.String message)
includes a message from the thrown exception (if any.)- Returns:
this
.
-
errorString
public PubNubError.PubNubErrorBuilder errorString(java.lang.String errorString)
PubNub supplied explanation of the error.- Returns:
this
.
-
build
public PubNubError build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-