ListeningErrorEventArgs object returns in onListeningError callback. It contains the error code and description of the error.

//@input Asset.VoiceMLModule vmlModule
//@input Component.Text screenTextTranscription

var onListeningErrorHandler = function(eventErrorArgs){
script.screenTextTranscription.text = 'error: ' + eventErrorArgs.error + " desc: "+ eventErrorArgs.description;
}

script.vmlModule.onListeningError.add(onListeningErrorHandler);

Hierarchy (View Summary, Expand)

Constructors

Properties

Methods

Constructors

Properties

description: string

Returns the description of the error.

error: number

Returns the Error code number.

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean

MMNEPVFCICPMFPCPTTAAATR