This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/python/exceptions/barcode-invalid-width-exception.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. BarcodeInvalidWidthException

Represents an exception that is thrown when a barcode cannot be written due to an invalid provided width.

This exception is typically thrown when the provided width is causing the bars/spaces to be less than one pixel. It applies only when writing to an image.

from nutrient_sdk import BarcodeInvalidWidthException

Inherits from: BarcodeException

Construction

BarcodeInvalidWidthException()

Creates a new BarcodeInvalidWidthException instance with default settings.

Properties

exception_reason

@property
def exception_reason(self) -> str

The reason for the exception that occurs when the barcode cannot be written.

Type: str

Read-only property.