Package com.nagra.otvaa.sdk
Enum OtvAaError
- All Implemented Interfaces:
Serializable
,Comparable<OtvAaError>
Enumeration of errors
eg OtvAaErrors.ALREADY_INITIALISED
Each error enum unit has an error code and a description string.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn attempt to submit activities to an agent before it was first initialised with endpoints.An attempt to initialise an already initialised agent is not permitted.TheOtvActivity.AppStart
activity must be the first activity to submit after initialising the agent or after submittingOtvActivity.AppEnd
.When usingOtvAnalyticsAgent.updateConfig(org.json.JSONObject)
, only pre-configured destinations can be updated.A playback-related activity must have a player reference provided for the wrapper to get the additional necessary metadata.Unable to create Insight wrapper.Unable to start Insight session.Unrecognised or malformed (e.g.Invalid configuration of account id metadata.The destination specified was not configured yet, or badly configured.Not in useThe token required for configuring access to the UAV was invalid.A URL for the UAV endpoint is missing or malformed.Configuration of the UAV requires a token in the configuration.Successful returnMultiple playback sessions are currently not permitted.An attempt to update the UAV endpoint, but only the token can be updated (for licence renewal).Trying to change (assign) the player while an existing playback session already exists is not permitted.Trying to submit aOtvActivity.PlaybackStart
activity before a player was set usingOtvAnalyticsAgentWrapper.setPlayer(java.lang.Object, int)
.Encountered an HTTP error when trying to submit an activity to the UAV endpoint.Encountered a imeout exception when trying to submit an activity to the UAV endpoint.Encountered an unknown error when trying to submit an activity to the UAV endpoint.An attempt to submit aOtvActivity.AppStart
orOtvActivity.PlaybackStart
activity with the wrapper must be made throughOtvAnalyticsAgentWrapper.appStart(org.json.JSONObject)
orOtvAnalyticsAgentWrapper.playbackStart(org.json.JSONObject, com.nagra.otvaa.sdk.insightwrapper.ContentInfoHolder, com.nagra.otvaa.sdk.insightwrapper.UserInfoHolder)
respectively.An attempt to initialise an already initialised wrapper is not permitted.An attempt to submit activities to a wrapper before it was first initialised. -
Method Summary
Modifier and TypeMethodDescriptionstatic OtvAaError
findByCode
(int xCode) A cross-reference to find the error associated by its codestatic OtvAaError
findByName
(String xName) A cross-reference to find the error associated by its nameint
getCode()
Get the error codeGet the error descriptiongetName()
Get the error namestatic OtvAaError
Returns the enum constant of this type with the specified name.static OtvAaError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OK
Successful return -
ALREADY_INITIALISED
An attempt to initialise an already initialised agent is not permitted. You may want to callOtvAnalyticsAgent.updateConfig(org.json.JSONObject)
instead, or close the exiting one first. -
AGENT_NOT_INITIALISED
An attempt to submit activities to an agent before it was first initialised with endpoints. -
APP_NOT_STARTED
TheOtvActivity.AppStart
activity must be the first activity to submit after initialising the agent or after submittingOtvActivity.AppEnd
. -
CAN_ONLY_UPDATE_EXISTING_DESTINATION
When usingOtvAnalyticsAgent.updateConfig(org.json.JSONObject)
, only pre-configured destinations can be updated. New destination endpoints are not permitted with this method. -
INVALID_ACTIVITY
Unrecognised or malformed (e.g. missing/wrong metadata) activity was submitted. -
INVALID_DESTINATION_CONFIGURATION
The destination specified was not configured yet, or badly configured. -
INVALID_CONFIGURATION
Invalid configuration of account id metadata. -
WRAPPER_ALREADY_INITIALISED
An attempt to initialise an already initialised wrapper is not permitted. You may want to callOtvAnalyticsAgentWrapper.updateConfig(org.json.JSONObject, org.json.JSONObject)
instead, or close the exiting one first. -
WRAPPER_NOT_INITIALISED
An attempt to submit activities to a wrapper before it was first initialised. -
INVALID_POSITION_CALLBACK
Not in use -
PLAYER_CHANGED_DURING_PLAYBACK
Trying to change (assign) the player while an existing playback session already exists is not permitted. Stop the existing session, and then update the player reference -
PLAYER_NOT_SET
Trying to submit aOtvActivity.PlaybackStart
activity before a player was set usingOtvAnalyticsAgentWrapper.setPlayer(java.lang.Object, int)
. -
USE_WRAPPER_METHOD
An attempt to submit aOtvActivity.AppStart
orOtvActivity.PlaybackStart
activity with the wrapper must be made throughOtvAnalyticsAgentWrapper.appStart(org.json.JSONObject)
orOtvAnalyticsAgentWrapper.playbackStart(org.json.JSONObject, com.nagra.otvaa.sdk.insightwrapper.ContentInfoHolder, com.nagra.otvaa.sdk.insightwrapper.UserInfoHolder)
respectively. -
CANT_POPULATE_METADATA_WITHOUT_PLAYER
A playback-related activity must have a player reference provided for the wrapper to get the additional necessary metadata. -
ONLY_ONE_PLAYBACK_SESSION
Multiple playback sessions are currently not permitted. -
INVALID_URL_FOR_UAV
A URL for the UAV endpoint is missing or malformed. -
NO_TOKEN_FOR_UAV
Configuration of the UAV requires a token in the configuration. -
ONLY_TOKEN_CAN_BE_UPDATED_FOR_UAV
An attempt to update the UAV endpoint, but only the token can be updated (for licence renewal). -
UAV_HTTP_ERROR
Encountered an HTTP error when trying to submit an activity to the UAV endpoint. -
UNABLE_TO_SEND_TO_UAV
Encountered an unknown error when trying to submit an activity to the UAV endpoint. -
UAV_TIMEOUT
Encountered a imeout exception when trying to submit an activity to the UAV endpoint. -
INVALID_TOKEN_FOR_UAV
The token required for configuring access to the UAV was invalid. -
INSIGHT_CANT_CREATE_WRAPPER
Unable to create Insight wrapper. The 'extra' field should contain an error code to explain reason. -
INSIGHT_CANT_START_SESSION
Unable to start Insight session. The 'extra' field should contain an error code to explain reason.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public int getCode()Get the error code- Returns:
- the unique error code associated with this error
-
getName
Get the error name- Returns:
- a readable string containing the name of the error
-
getDescription
Get the error description- Returns:
- a string describing the nature of the error
-
findByCode
A cross-reference to find the error associated by its code- Returns:
- the error associated with the code, or null if not found
-
findByName
A cross-reference to find the error associated by its name- Returns:
- the error associated with the code, or null if not found
-