getLastError()

From Engineering Client Portal

Revision as of 07:31, 21 May 2017 by Admin (talk | contribs) (Created page with "{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|Android SDK API Reference}} {{CurrentBreadcrumb}} Category:Digital Category:Android SDK API Reference Queries the N...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Engineering Portal / Digital / Android SDK API Reference / 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.