Accusoft USB Scanner SDK
ScanError Class Reference

Class that holds an error code. More...

Inherits Serializable.

List of all members.

Public Member Functions

final String getError ()
 Get the resource ID corresponding to the error message this object represents.
final String getErrorString ()
 Returns the string variable name from scan_errors.xml for the error (eg.
final String getLocalizedErrorString (Context context)
 Automatically uses the context to generate a localized error message for the data.

Detailed Description

Class that holds an error code.


Member Function Documentation

final String getError ( )

Get the resource ID corresponding to the error message this object represents.

Returns:
An ID in the scan_errors.xml resource from the set of SCAN_status_* or SCANIMAGE_ERR_* messages.
final String getErrorString ( )

Returns the string variable name from scan_errors.xml for the error (eg.

"SCAN_status_good")

Returns:
The error description for this ScanError
final String getLocalizedErrorString ( Context  context)

Automatically uses the context to generate a localized error message for the data.

Parameters:
contextA context that will be used to generate the localization
Returns:
A string representation of the error message