BarCodeException

BarCodeException class

Module: aspose_barcode.core.exceptions

Inherits: Exception

Represents the exception for creating barcode image.

Constructors

NameDescription
initInitializes a new instance of the BarCodeException class with specified error message.

Methods

NameReturn TypeStaticDescription
getMessageOptional[str]NoGets message.
MAX_LINESintYes
setMessageNoneNoSets message.

BarCodeException Constructor

__init__(self, Union[str, Exception] exc)

Initializes a new instance of the BarCodeException class with specified error message.

ParameterTypeDescription
excUnion[str, Exception]

BarCodeException.getMessage

getMessage(self) -> Optional[str]

Gets message.

Return Type: Optional[str]

BarCodeException.MAX_LINES (static)

MAX_LINES() -> int

Return Type: int

BarCodeException.setMessage

setMessage(self, str message)

Sets message.

ParameterTypeDescription
messagestr