com.pubnub.api.PubNubError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pubnub Show documentation
Show all versions of pubnub Show documentation
PubNub is a cross-platform client-to-client (1:1 and 1:many) push service in the cloud, capable of
broadcasting real-time messages to millions of web and mobile clients simultaneously, in less than a quarter
second!
package com.pubnub.api;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Builder;
import lombok.Getter;
/**
* PubNubError object is passed to errorCallback. It contains details of error,
* like error code, error string, and optional message
*
* @author PubNub
*
*/
@Getter
@Builder
public class PubNubError {
private final int errorCode;
private final int errorCodeExtended;
private final JsonNode errorObject;
/**
* includes a message from the thrown exception (if any.)
*/
private final String message;
/**
* PubNub supplied explanation of the error.
*/
private final String errorString;
}