BarcodeException Class
Free Trial Web API version Licensing Request A Quote
HAVE QUESTIONS OR NEED HELP?SUBMIT THE SUPPORT REQUEST FORM or write email toSUPPORT@BYTESCOUT.COM
Represents errors that occur during Bytescout.BarCode class library execution.
Inheritance Hierarchy
SystemException
Bytescout.BarCodeBarcodeException
Bytescout.BarCodeBarcodeProfileException
Namespace:Bytescout.BarCode
Assembly: Bytescout.BarCode (in Bytescout.BarCode.dll) Version: 7.6.3.1256-master
Syntax
The BarcodeException type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | BarcodeException(String) | Initializes a new instance of the BarcodeException class with a specified error message. |
![]() | BarcodeException(String, Exception) | Initializes a new instance of the BarcodeException class with a specified error message and inner exception. |
Properties
Name | Description | |
---|---|---|
![]() | Data | (Inherited from Exception.) |
![]() | HelpLink | (Inherited from Exception.) |
![]() | HResult | (Inherited from Exception.) |
![]() | InnerException | (Inherited from Exception.) |
![]() | Message | (Inherited from Exception.) |
![]() | Source | (Inherited from Exception.) |
![]() | StackTrace | (Inherited from Exception.) |
![]() | TargetSite | (Inherited from Exception.) |
Methods
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetBaseException | (Inherited from Exception.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetObjectData | (Inherited from Exception.) |
![]() | GetType | (Inherited from Exception.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Exception.) |
Events
Name | Description | |
---|---|---|
![]() | SerializeObjectState | (Inherited from Exception.) |
Examples
namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Barcode bc = new Barcode(SymbologyType.Code128); bc.Options.Code128Alphabet = Code128Alphabet.C; try { bc.Value = "DATA"; } catch (BarcodeException e) { Console.WriteLine("BarcodeException Handler: {0}", e.ToString()); } catch (Exception e) { Console.WriteLine("Generic Exception Handler: {0}", e.ToString()); } } } } // // This code example produces the following results: // // BarcodeException Handler: Bytescout.Barcode.BarcodeException: provided value // can't be encoded by current symbology. // Code 128 Alphabet C allows only numeric values with even length. // at Bytescout.BarCode.Internal.SymbologyDrawing.set_Value(String value)
See Also