onError
A callback function that is automatically called when an error is sent from the Apple TV.
Declaration
attribute function onError;Discussion
Use the onError attribute to handle any errors sent from the Apple TV. This attribute must be set to the following function: App.onError = function (message, sourceURL, line) {}.
message—The error message.sourceURL—The URL for the TVMLKit JS file where the error occurred. Defaults tonilif the information is not available.line—The line in the TVMLKit JS file where the error occurred. Defaults tonilif the information is not available.