CVB.Net 14.0
ErrorHandling Class Reference

Error handling functionality for the CVC Barcode wrapper. More...

Public Types

enum  NativeError
 Error codes that the native library can return.
 

Static Public Member Functions

static int TranslateBarcodeError (int err)
 Translate a Barcode Reader error into a regular CVB Error. More...
 
static int TranslateBarcodeError (NativeError err)
 Translate a Barcode Reader error into a regular CVB Error. More...
 
static Exception ExceptionFromBarcodeError (int err)
 Translate a Barcode Reader error into a suitable exception. More...
 
static Exception ExceptionFromBarcodeError (NativeError err)
 Translate a Barcode Reader error into a suitable exception. More...
 

Detailed Description

Error handling functionality for the CVC Barcode wrapper.

Member Function Documentation

◆ ExceptionFromBarcodeError() [1/2]

static Exception ExceptionFromBarcodeError ( int  err)
static

Translate a Barcode Reader error into a suitable exception.

Parameters
errerror to translate
Returns
exception

◆ ExceptionFromBarcodeError() [2/2]

static Exception ExceptionFromBarcodeError ( NativeError  err)
static

Translate a Barcode Reader error into a suitable exception.

Parameters
errerror to translate
Returns
exception

◆ TranslateBarcodeError() [1/2]

static int TranslateBarcodeError ( int  err)
static

Translate a Barcode Reader error into a regular CVB Error.

Parameters
errerror code to translate
Returns
translated error code

◆ TranslateBarcodeError() [2/2]

static int TranslateBarcodeError ( NativeError  err)
static

Translate a Barcode Reader error into a regular CVB Error.

Parameters
errerror code to translate
Returns
translated error code