onFailure


Purpose

Invoked when an error occurs while scanning the barcode data. A JSON object passed as parameter contains detailed information about the error.

Signature

onFailure( {code, description} )

Returns

This method does not return anything.

Parameters

Name Description Type Use
code Specifies one of the error codes defined in the BarcodeScanner class. Possible failure types are listed in the Constants section of the BarcodeScanner article. string required
description General description of the specific error that has occurred. string required

Related topics

Public API reference
scan
Legal notice | Copyright © 2015 and Confidential to Pegasystems Inc. All rights reserved. | Feedback
Advanced...