Package com.pubnub.api.builder
Class PubNubErrorBuilder
- java.lang.Object
-
- com.pubnub.api.builder.PubNubErrorBuilder
-
public final class PubNubErrorBuilder extends java.lang.Object
-
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PubNubError
createCryptoError(int code, java.lang.String message)
-
-
-
Field Detail
-
PNERR_TIMEOUT
public static final int PNERR_TIMEOUT
Timeout Error .- See Also:
- Constant Field Values
-
PNERR_PUBNUB_ERROR
public static final int PNERR_PUBNUB_ERROR
- See Also:
- Constant Field Values
-
PNERR_CONNECT_EXCEPTION
public static final int PNERR_CONNECT_EXCEPTION
Connect Exception . Network Unreachable.- See Also:
- Constant Field Values
-
PNERR_HTTP_ERROR
public static final int PNERR_HTTP_ERROR
Please check network connectivity.- See Also:
- Constant Field Values
-
PNERR_CLIENT_TIMEOUT
public static final int PNERR_CLIENT_TIMEOUT
Client Timeout .- See Also:
- Constant Field Values
-
PNERR_ULSSIGN_ERROR
public static final int PNERR_ULSSIGN_ERROR
An ULS singature error occurred . Please contact support with error details.- See Also:
- Constant Field Values
-
PNERR_NETWORK_ERROR
public static final int PNERR_NETWORK_ERROR
Please verify if network is reachable- See Also:
- Constant Field Values
-
PNERR_PUBNUB_EXCEPTION
public static final int PNERR_PUBNUB_EXCEPTION
PubNub Exception .- See Also:
- Constant Field Values
-
PNERR_DISCONNECT
public static final int PNERR_DISCONNECT
Disconnect .- See Also:
- Constant Field Values
-
PNERR_DISCONN_AND_RESUB
public static final int PNERR_DISCONN_AND_RESUB
Disconnect and Resubscribe Received .- See Also:
- Constant Field Values
-
PNERR_GATEWAY_TIMEOUT
public static final int PNERR_GATEWAY_TIMEOUT
Gateway Timeout- See Also:
- Constant Field Values
-
PNERR_FORBIDDEN
public static final int PNERR_FORBIDDEN
PubNub server returned HTTP 403 forbidden status code. Happens when wrong authentication key is used .- See Also:
- Constant Field Values
-
PNERR_UNAUTHORIZED
public static final int PNERR_UNAUTHORIZED
PubNub server returned HTTP 401 unauthorized status code Happens when authentication key is missing .- See Also:
- Constant Field Values
-
PNERR_SECRET_KEY_MISSING
public static final int PNERR_SECRET_KEY_MISSING
Secret key not configured- See Also:
- Constant Field Values
-
PNERR_ENCRYPTION_ERROR
public static final int PNERR_ENCRYPTION_ERROR
Error while encrypting message to be published to PubNub Cloud . Please contact support with error details.- See Also:
- Constant Field Values
-
PNERR_DECRYPTION_ERROR
public static final int PNERR_DECRYPTION_ERROR
Decryption Error . Please contact support with error details.- See Also:
- Constant Field Values
-
PNERR_INVALID_JSON
public static final int PNERR_INVALID_JSON
Invalid Json . Please contact support with error details.- See Also:
- Constant Field Values
-
PNERR_GETINPUTSTREAM
public static final int PNERR_GETINPUTSTREAM
Unable to open input stream . Please contact support with error details.- See Also:
- Constant Field Values
-
PNERR_MALFORMED_URL
public static final int PNERR_MALFORMED_URL
Malformed URL . Please contact support with error details .- See Also:
- Constant Field Values
-
PNERR_URL_OPEN
public static final int PNERR_URL_OPEN
Error in opening URL . Please contact support with error details.- See Also:
- Constant Field Values
-
PNERR_JSON_ERROR
public static final int PNERR_JSON_ERROR
JSON Error while processing API response. Please contact support with error details.- See Also:
- Constant Field Values
-
PNERR_PROTOCOL_EXCEPTION
public static final int PNERR_PROTOCOL_EXCEPTION
Protocol Exception . Please contact support with error details.- See Also:
- Constant Field Values
-
PNERR_READINPUT
public static final int PNERR_READINPUT
Unable to read input stream . Please contact support with error details.- See Also:
- Constant Field Values
-
PNERR_BAD_GATEWAY
public static final int PNERR_BAD_GATEWAY
Bad gateway . Please contact support with error details.- See Also:
- Constant Field Values
-
PNERR_INTERNAL_ERROR
public static final int PNERR_INTERNAL_ERROR
PubNub server returned HTTP 502 internal server error status code. Please contact support with error details.- See Also:
- Constant Field Values
-
PNERR_PARSING_ERROR
public static final int PNERR_PARSING_ERROR
Parsing Error .- See Also:
- Constant Field Values
-
PNERR_BAD_REQUEST
public static final int PNERR_BAD_REQUEST
Bad Request . Please contact support with error details.- See Also:
- Constant Field Values
-
PNERR_HTTP_RC_ERROR
public static final int PNERR_HTTP_RC_ERROR
- See Also:
- Constant Field Values
-
PNERR_NOT_FOUND
public static final int PNERR_NOT_FOUND
PubNub server or intermediate server returned HTTP 404 unauthorized status code- See Also:
- Constant Field Values
-
PNERR_HTTP_SOCKET_TIMEOUT
public static final int PNERR_HTTP_SOCKET_TIMEOUT
Subscribe Timeout .- See Also:
- Constant Field Values
-
PNERR_INVALID_ARGUMENTS
public static final int PNERR_INVALID_ARGUMENTS
Invalid arguments provided to API- See Also:
- Constant Field Values
-
PNERR_CHANNEL_MISSING
public static final int PNERR_CHANNEL_MISSING
Channel missing- See Also:
- Constant Field Values
-
PNERR_CONNECTION_NOT_SET
public static final int PNERR_CONNECTION_NOT_SET
PubNub connection not set on sender- See Also:
- Constant Field Values
-
PNERR_CHANNEL_GROUP_PARSING_ERROR
public static final int PNERR_CHANNEL_GROUP_PARSING_ERROR
Error while parsing group name- See Also:
- Constant Field Values
-
PNERR_CRYPTO_ERROR
public static final int PNERR_CRYPTO_ERROR
Crypto Error- See Also:
- Constant Field Values
-
PNERR_GROUP_MISSING
public static final int PNERR_GROUP_MISSING
Group missing- See Also:
- Constant Field Values
-
PNERR_AUTH_KEYS_MISSING
public static final int PNERR_AUTH_KEYS_MISSING
Auth Keys missing- See Also:
- Constant Field Values
-
PNERR_SUBSCRIBE_KEY_MISSING
public static final int PNERR_SUBSCRIBE_KEY_MISSING
Subscribe Key missing- See Also:
- Constant Field Values
-
PNERR_PUBLISH_KEY_MISSING
public static final int PNERR_PUBLISH_KEY_MISSING
Publish Key missing- See Also:
- Constant Field Values
-
PNERR_STATE_MISSING
public static final int PNERR_STATE_MISSING
State missing- See Also:
- Constant Field Values
-
PNERR_CHANNEL_AND_GROUP_MISSING
public static final int PNERR_CHANNEL_AND_GROUP_MISSING
Channel and Group missing- See Also:
- Constant Field Values
-
PNERR_MESSAGE_MISSING
public static final int PNERR_MESSAGE_MISSING
Message missing- See Also:
- Constant Field Values
-
PNERR_PUSH_TYPE_MISSING
public static final int PNERR_PUSH_TYPE_MISSING
Push TYpe missing- See Also:
- Constant Field Values
-
PNERR_DEVICE_ID_MISSING
public static final int PNERR_DEVICE_ID_MISSING
Device ID missing- See Also:
- Constant Field Values
-
PNERR_TIMETOKEN_MISSING
public static final int PNERR_TIMETOKEN_MISSING
Timetoken missing- See Also:
- Constant Field Values
-
PNERR_CHANNELS_TIMETOKEN_MISMATCH
public static final int PNERR_CHANNELS_TIMETOKEN_MISMATCH
Timetoken missing- See Also:
- Constant Field Values
-
PNERR_UUID_MISSING
public static final int PNERR_UUID_MISSING
UUID missing- See Also:
- Constant Field Values
-
PNERR_USER_ID_MISSING
public static final int PNERR_USER_ID_MISSING
User ID missing- See Also:
- Constant Field Values
-
PNERR_USER_NAME_MISSING
public static final int PNERR_USER_NAME_MISSING
User name missing- See Also:
- Constant Field Values
-
PNERR_SPACE_MISSING
public static final int PNERR_SPACE_MISSING
Space missing- See Also:
- Constant Field Values
-
PNERR_SPACE_ID_MISSING
public static final int PNERR_SPACE_ID_MISSING
Space ID missing- See Also:
- Constant Field Values
-
PNERR_SPACE_NAME_MISSING
public static final int PNERR_SPACE_NAME_MISSING
Space name missing- See Also:
- Constant Field Values
-
PNERR_RESOURCES_MISSING
public static final int PNERR_RESOURCES_MISSING
Resources missing- See Also:
- Constant Field Values
-
PNERR_TTL_MISSING
public static final int PNERR_TTL_MISSING
TTL missing- See Also:
- Constant Field Values
-
PNERR_INVALID_META
public static final int PNERR_INVALID_META
Invalid meta parameter- See Also:
- Constant Field Values
-
PNERR_PERMISSION_MISSING
public static final int PNERR_PERMISSION_MISSING
Permission missing- See Also:
- Constant Field Values
-
PNERR_INVALID_ACCESS_TOKEN
public static final int PNERR_INVALID_ACCESS_TOKEN
Invalid access token- See Also:
- Constant Field Values
-
PNERR_MESSAGE_ACTION_MISSING
public static final int PNERR_MESSAGE_ACTION_MISSING
Message action missing- See Also:
- Constant Field Values
-
PNERR_MESSAGE_ACTION_TYPE_MISSING
public static final int PNERR_MESSAGE_ACTION_TYPE_MISSING
Message action type missing- See Also:
- Constant Field Values
-
PNERR_MESSAGE_ACTION_VALUE_MISSING
public static final int PNERR_MESSAGE_ACTION_VALUE_MISSING
Message action value missing- See Also:
- Constant Field Values
-
PNERR_MESSAGE_TIMETOKEN_MISSING
public static final int PNERR_MESSAGE_TIMETOKEN_MISSING
Message timetoken missing- See Also:
- Constant Field Values
-
PNERR_MESSAGE_ACTION_TIMETOKEN_MISSING
public static final int PNERR_MESSAGE_ACTION_TIMETOKEN_MISSING
Message action timetoken missing- See Also:
- Constant Field Values
-
PNERR_HISTORY_MESSAGE_ACTIONS_MULTIPLE_CHANNELS
public static final int PNERR_HISTORY_MESSAGE_ACTIONS_MULTIPLE_CHANNELS
Retrieving message actions for multiple channels- See Also:
- Constant Field Values
-
PNERR_PUSH_TOPIC_MISSING
public static final int PNERR_PUSH_TOPIC_MISSING
Push topic missing- See Also:
- Constant Field Values
-
PNERR_PAGINATION_NEXT_OUT_OF_BOUNDS
public static final int PNERR_PAGINATION_NEXT_OUT_OF_BOUNDS
No more pages to load after last one- See Also:
- Constant Field Values
-
PNERR_PAGINATION_PREV_OUT_OF_BOUNDS
public static final int PNERR_PAGINATION_PREV_OUT_OF_BOUNDS
No pages to load before first one- See Also:
- Constant Field Values
-
PNERR_PAYLOAD_TOO_LARGE
public static final int PNERR_PAYLOAD_TOO_LARGE
Payload too large- See Also:
- Constant Field Values
-
PNERR_TOKEN_MISSING
public static final int PNERR_TOKEN_MISSING
Token missing- See Also:
- Constant Field Values
-
PNERR_UUID_NULL_OR_EMPTY
public static final int PNERR_UUID_NULL_OR_EMPTY
UUID can't be null nor empty- See Also:
- Constant Field Values
-
PNERR_USERID_NULL_OR_EMPTY
public static final int PNERR_USERID_NULL_OR_EMPTY
UserId can't be null nor empty- See Also:
- Constant Field Values
-
PNERR_SPACEID_NULL_OR_EMPTY
public static final int PNERR_SPACEID_NULL_OR_EMPTY
SpaceId can't be null nor empty- See Also:
- Constant Field Values
-
PNERR_STATE_MUST_BE_JSON_OBJECT
public static final int PNERR_STATE_MUST_BE_JSON_OBJECT
State must be a JSON object.- See Also:
- Constant Field Values
-
PNERR_USERID_CAN_NOT_BE_DIFFERENT
public static final int PNERR_USERID_CAN_NOT_BE_DIFFERENT
UserId can't be different from UserId in configuration when flag withHeartbeat is set to true.- See Also:
- Constant Field Values
-
PNERR_CRYPTO_IS_CONFIGURED_BUT_MESSAGE_IS_NOT_ENCRYPTED
public static final int PNERR_CRYPTO_IS_CONFIGURED_BUT_MESSAGE_IS_NOT_ENCRYPTED
Used when crypto is configured but the message was not encrypted.- See Also:
- Constant Field Values
-
PNERROBJ_TIMEOUT
public static final PubNubError PNERROBJ_TIMEOUT
-
PNERROBJ_INTERNAL_ERROR
public static final PubNubError PNERROBJ_INTERNAL_ERROR
-
PNERROBJ_ENCRYPTION_ERROR
public static final PubNubError PNERROBJ_ENCRYPTION_ERROR
-
PNERROBJ_DECRYPTION_ERROR
public static final PubNubError PNERROBJ_DECRYPTION_ERROR
-
PNERROBJ_INVALID_JSON
public static final PubNubError PNERROBJ_INVALID_JSON
-
PNERROBJ_JSON_ERROR
public static final PubNubError PNERROBJ_JSON_ERROR
-
PNERROBJ_MALFORMED_URL
public static final PubNubError PNERROBJ_MALFORMED_URL
-
PNERROBJ_PUBNUB_ERROR
public static final PubNubError PNERROBJ_PUBNUB_ERROR
-
PNERROBJ_URL_OPEN
public static final PubNubError PNERROBJ_URL_OPEN
-
PNERROBJ_PROTOCOL_EXCEPTION
public static final PubNubError PNERROBJ_PROTOCOL_EXCEPTION
-
PNERROBJ_CONNECT_EXCEPTION
public static final PubNubError PNERROBJ_CONNECT_EXCEPTION
-
PNERROBJ_HTTP_RC_ERROR
public static final PubNubError PNERROBJ_HTTP_RC_ERROR
-
PNERROBJ_GETINPUTSTREAM
public static final PubNubError PNERROBJ_GETINPUTSTREAM
-
PNERROBJ_READINPUT
public static final PubNubError PNERROBJ_READINPUT
-
PNERROBJ_BAD_REQUEST
public static final PubNubError PNERROBJ_BAD_REQUEST
-
PNERROBJ_HTTP_ERROR
public static final PubNubError PNERROBJ_HTTP_ERROR
-
PNERROBJ_BAD_GATEWAY
public static final PubNubError PNERROBJ_BAD_GATEWAY
-
PNERROBJ_CLIENT_TIMEOUT
public static final PubNubError PNERROBJ_CLIENT_TIMEOUT
-
PNERROBJ_GATEWAY_TIMEOUT
public static final PubNubError PNERROBJ_GATEWAY_TIMEOUT
-
PNERROBJ_5023_INTERNAL_ERROR
public static final PubNubError PNERROBJ_5023_INTERNAL_ERROR
-
PNERROBJ_PARSING_ERROR
public static final PubNubError PNERROBJ_PARSING_ERROR
-
PNERROBJ_PUBNUB_EXCEPTION
public static final PubNubError PNERROBJ_PUBNUB_EXCEPTION
-
PNERROBJ_DISCONNECT
public static final PubNubError PNERROBJ_DISCONNECT
-
PNERROBJ_DISCONN_AND_RESUB
public static final PubNubError PNERROBJ_DISCONN_AND_RESUB
-
PNERROBJ_FORBIDDEN
public static final PubNubError PNERROBJ_FORBIDDEN
-
PNERROBJ_UNAUTHORIZED
public static final PubNubError PNERROBJ_UNAUTHORIZED
-
PNERROBJ_SECRET_KEY_MISSING
public static final PubNubError PNERROBJ_SECRET_KEY_MISSING
-
PNERROBJ_SUBSCRIBE_KEY_MISSING
public static final PubNubError PNERROBJ_SUBSCRIBE_KEY_MISSING
-
PNERROBJ_PUBLISH_KEY_MISSING
public static final PubNubError PNERROBJ_PUBLISH_KEY_MISSING
-
PNERROBJ_ULSSIGN_ERROR
public static final PubNubError PNERROBJ_ULSSIGN_ERROR
-
PNERROBJ_5075_NETWORK_ERROR
public static final PubNubError PNERROBJ_5075_NETWORK_ERROR
-
PNERROBJ_NOT_FOUND_ERROR
public static final PubNubError PNERROBJ_NOT_FOUND_ERROR
-
PNERROBJ_SOCKET_TIMEOUT
public static final PubNubError PNERROBJ_SOCKET_TIMEOUT
-
PNERROBJ_INVALID_ARGUMENTS
public static final PubNubError PNERROBJ_INVALID_ARGUMENTS
-
PNERROBJ_CHANNEL_MISSING
public static final PubNubError PNERROBJ_CHANNEL_MISSING
-
PNERROBJ_STATE_MISSING
public static final PubNubError PNERROBJ_STATE_MISSING
-
PNERROBJ_STATE_MUST_BE_JSON_OBJECT
public static final PubNubError PNERROBJ_STATE_MUST_BE_JSON_OBJECT
-
PNERROBJ_MESSAGE_MISSING
public static final PubNubError PNERROBJ_MESSAGE_MISSING
-
PNERROBJ_PUSH_TYPE_MISSING
public static final PubNubError PNERROBJ_PUSH_TYPE_MISSING
-
PNERROBJ_DEVICE_ID_MISSING
public static final PubNubError PNERROBJ_DEVICE_ID_MISSING
-
PNERROBJ_CONNECTION_NOT_SET
public static final PubNubError PNERROBJ_CONNECTION_NOT_SET
-
PNERROBJ_GROUP_MISSING
public static final PubNubError PNERROBJ_GROUP_MISSING
-
PNERROBJ_CHANNEL_AND_GROUP_MISSING
public static final PubNubError PNERROBJ_CHANNEL_AND_GROUP_MISSING
-
PNERROBJ_AUTH_KEYS_MISSING
public static final PubNubError PNERROBJ_AUTH_KEYS_MISSING
-
PNERROBJ_CHANNEL_GROUP_PARSING_ERROR
public static final PubNubError PNERROBJ_CHANNEL_GROUP_PARSING_ERROR
-
PNERROBJ_CRYPTO_ERROR
public static final PubNubError PNERROBJ_CRYPTO_ERROR
-
PNERROBJ_TIMETOKEN_MISSING
public static final PubNubError PNERROBJ_TIMETOKEN_MISSING
-
PNERROBJ_CHANNELS_TIMETOKEN_MISMATCH
public static final PubNubError PNERROBJ_CHANNELS_TIMETOKEN_MISMATCH
-
PNERROBJ_UUID_MISSING
public static final PubNubError PNERROBJ_UUID_MISSING
-
PNERROBJ_USER_ID_MISSING
public static final PubNubError PNERROBJ_USER_ID_MISSING
-
PNERROBJ_USER_NAME_MISSING
public static final PubNubError PNERROBJ_USER_NAME_MISSING
-
PNERROBJ_SPACE_MISSING
public static final PubNubError PNERROBJ_SPACE_MISSING
-
PNERROBJ_SPACE_ID_MISSING
public static final PubNubError PNERROBJ_SPACE_ID_MISSING
-
PNERROBJ_SPACE_NAME_MISSING
public static final PubNubError PNERROBJ_SPACE_NAME_MISSING
-
PNERROBJ_RESOURCES_MISSING
public static final PubNubError PNERROBJ_RESOURCES_MISSING
-
PNERROBJ_TTL_MISSING
public static final PubNubError PNERROBJ_TTL_MISSING
-
PNERROBJ_INVALID_META
public static final PubNubError PNERROBJ_INVALID_META
-
PNERROBJ_PERMISSION_MISSING
public static final PubNubError PNERROBJ_PERMISSION_MISSING
-
PNERROBJ_INVALID_ACCESS_TOKEN
public static final PubNubError PNERROBJ_INVALID_ACCESS_TOKEN
-
PNERROBJ_MESSAGE_ACTION_MISSING
public static final PubNubError PNERROBJ_MESSAGE_ACTION_MISSING
-
PNERROBJ_MESSAGE_ACTION_TYPE_MISSING
public static final PubNubError PNERROBJ_MESSAGE_ACTION_TYPE_MISSING
-
PNERROBJ_MESSAGE_ACTION_VALUE_MISSING
public static final PubNubError PNERROBJ_MESSAGE_ACTION_VALUE_MISSING
-
PNERROBJ_MESSAGE_TIMETOKEN_MISSING
public static final PubNubError PNERROBJ_MESSAGE_TIMETOKEN_MISSING
-
PNERROBJ_MESSAGE_ACTION_TIMETOKEN_MISSING
public static final PubNubError PNERROBJ_MESSAGE_ACTION_TIMETOKEN_MISSING
-
PNERROBJ_HISTORY_MESSAGE_ACTIONS_MULTIPLE_CHANNELS
public static final PubNubError PNERROBJ_HISTORY_MESSAGE_ACTIONS_MULTIPLE_CHANNELS
-
PNERROBJ_PUSH_TOPIC_MISSING
public static final PubNubError PNERROBJ_PUSH_TOPIC_MISSING
-
PNERROBJ_PAGINATION_NEXT_OUT_OF_BOUNDS
public static final PubNubError PNERROBJ_PAGINATION_NEXT_OUT_OF_BOUNDS
-
PNERROBJ_PAGINATION_PREV_OUT_OF_BOUNDS
public static final PubNubError PNERROBJ_PAGINATION_PREV_OUT_OF_BOUNDS
-
PNERROBJ_PAYLOAD_TOO_LARGE
public static final PubNubError PNERROBJ_PAYLOAD_TOO_LARGE
-
PNERROBJ_TOKEN_MISSING
public static final PubNubError PNERROBJ_TOKEN_MISSING
-
PNERROBJ_UUID_NULL_OR_EMPTY
public static final PubNubError PNERROBJ_UUID_NULL_OR_EMPTY
-
PNERROBJ_USERID_NULL_OR_EMPTY
public static final PubNubError PNERROBJ_USERID_NULL_OR_EMPTY
-
PNERROBJ_SPACEID_NULL_OR_EMPTY
public static final PubNubError PNERROBJ_SPACEID_NULL_OR_EMPTY
-
PNERROBJ_USERID_CAN_NOT_BE_DIFFERENT_FROM_IN_CONFIGURATION_WHEN_WITHHEARTBEAT_TRUE
public static final PubNubError PNERROBJ_USERID_CAN_NOT_BE_DIFFERENT_FROM_IN_CONFIGURATION_WHEN_WITHHEARTBEAT_TRUE
-
PNERROBJ_PNERR_CRYPTO_IS_CONFIGURED_BUT_MESSAGE_IS_NOT_ENCRYPTED
public static final PubNubError PNERROBJ_PNERR_CRYPTO_IS_CONFIGURED_BUT_MESSAGE_IS_NOT_ENCRYPTED
-
-
Method Detail
-
createCryptoError
public static PubNubError createCryptoError(int code, java.lang.String message)
-
-