Search Results for

    Show / Hide Table of Contents

    Class IronBarCodeFormatOnlyAcceptsNumericValuesEncodingException

    A specific Exception raised when the Value of a barcode contains non numeric characters for a BarcodeEncoding which only accepts digits.

    Inheritance
    System.Object
    IronBarCodeException
    IronBarCodeEncodingException
    IronBarCodeFormatOnlyAcceptsNumericValuesEncodingException
    Namespace: IronBarCode.Exceptions
    Assembly: IronBarCode.dll
    Syntax
    public class IronBarCodeFormatOnlyAcceptsNumericValuesEncodingException : IronBarCodeEncodingException

    When the chosen barcode format accepts digits only and the value contains letters or symbols, IronBarcode throws IronBarCodeFormatOnlyAcceptsNumericValuesEncodingException. Numeric symbologies such as EAN, UPC, and ITF reject any non-digit character. Strip the offending characters so the payload is purely numeric, or select a format that supports alphanumeric data such as Code 128 or a QR code, then try the encode once more. It derives from IronBarCodeEncodingException, which itself derives from IronBarCodeException.

    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget