Class 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
    • Method Detail

      • 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 class java.lang.Object