steenzout.barcode.errors module¶
Exceptions module.
-
exception
BarcodeError(msg)[source]¶ Bases:
exceptions.ExceptionBase class for steenzout.barcode exceptions.
-
exception
BarcodeNotFoundError(name)[source]¶ Bases:
steenzout.barcode.errors.BarcodeErrorRaised when an unknown barcode is requested.
-
exception
IllegalCharacterError(allowed)[source]¶ Bases:
steenzout.barcode.errors.BarcodeErrorRaised when a bar code contains illegal characters.
-
exception
NumberOfDigitsError(msg)[source]¶ Bases:
steenzout.barcode.errors.BarcodeErrorRaised when the number of digits do not match.
-
exception
WrongCountryCodeError(country)[source]¶ Bases:
steenzout.barcode.errors.BarcodeErrorRaised when a JAN (Japan Article Number) doesn’t start with 450-459 or 490-499.