CacheException class

This Class represents the exception thrown by the SMP REST library.

Syntax

public class CacheException extends Exception

Members

All members of CacheException, including inherited members.

Variables
Modifier and Type Variable Description
public static final int ANY_INPUT_FIELD_NULL Any of the input fields passed is null.
public static final int APPLICATION_ID_NULL Application is not initialized.
public static final int APPLICATION_USER_ALREADY_REGISTERED Attempt to register an application user which is already registered.
public static final int APPLICATION_USER_NOT_REGISTERED Attempt to delete the user which has not been registered.
public static final int AUTHENTICATION_ERROR Error while authenticating user.
public static final int BTX_UPLOAD_ERROR E2E BTX upload error.
public static final int CacheGenericErrorCode Asynchronous user registration listener not registered with UserManager.
public static final int CAPTCHA_LISTENER_NULL Captcha listener is null.
public static final int CLASS_INITIALIZATION_FAILED Class initialization failed.
public static final int E2E_NOT_STARTED E2E Not started.
public static final int EMPTY_RESPONSE_FROM_SERVER Empty response string received from server.
public static final int HTTP_ERROR HTTP error.
public static final int INVALID_MODULE_ID Invalid module handle ID.
public static final int JSON_PARSING_FAILED Internal error, JSON parsing has failed.
public static final int NETWORK_ERROR Network error: Obtained when the URL is unreachable.
public static final int PARSE_ERROR Parse error.
public static final int REGISTRATION_FAILED_UNKNOWN_ERROR User registration timed out.
public static final int SINGLETON_INITIALIZATION_FAILED singleton Initialization failed
public static final int SUP_INTERNAL_PARSING_ERROR SUP Internal Parsing Error.
public static final int UPDATE_SETTINGS_CONTAINS_READONLY_FIELDS Update Settings consists of one or more read only fields.
Constructors
Modifier and Type Constructor Description
public CacheException(int) Constructs a SMPException with specified error code.
public CacheException(String) Constructs a SMPException with specified error message.
public CacheException(int, String) Constructs a SMPException with specified error code and error message.
Methods
Modifier and Type Method Description
public int getErrorCode() Returns the error code of this SMPException.
public String toString() Returns the complete error description of this SMPException.