getLastError()

From Engineering Client Portal

Engineering Portal breadcrumbArrow.png Digital breadcrumbArrow.png Android SDK API Reference breadcrumbArrow.png getLastError()
Queries the NielsenAppApi framework for the last error that occurred. The getLastError() allows the player application to query the Nielsen AppApi Class for details on the last error that occurred. If the error was caused by throwing an exception, it will print stack information describing the file, line and reason of the exception. It also has an Nielsen App SDK error code enumeration type.

Syntax

public static String getLastError()

Input Parameters

Parameter Description
None

Output Parameters

Output Parameters (Return value) Description
Returns an JSON string describing the last error occurred information.
lastErrorOccurred A JSON string object that provides information on the error domain, the error code, and details on the specific error.
timestamp NSDate time stamp at which the last error occurred.

Notes

Refer to Events and Error Handling section for more details.