UNPKG

@tjieco/library

Version:

TypeScript port of ZXing multi-format 1D/2D barcode image processing library, with Code128 and ITF support.

31 lines (30 loc) 1.18 kB
"use strict"; exports.__esModule = true; var Exception = /** @class */ (function () { function Exception(type, message) { this.type = type; this.message = message; } Exception.prototype.getType = function () { return this.type; }; Exception.prototype.getMessage = function () { return this.message; }; Exception.isOfType = function (ex, type) { return ex.type === type; }; Exception.IllegalArgumentException = 'IllegalArgumentException'; Exception.NotFoundException = 'NotFoundException'; Exception.ArithmeticException = 'ArithmeticException'; Exception.FormatException = 'FormatException'; Exception.ChecksumException = 'ChecksumException'; Exception.WriterException = 'WriterException'; Exception.IllegalStateException = 'IllegalStateException'; Exception.UnsupportedOperationException = 'UnsupportedOperationException'; Exception.ReedSolomonException = 'ReedSolomonException'; Exception.ArgumentException = 'ArgumentException'; Exception.ReaderException = 'ReaderException'; return Exception; }()); exports["default"] = Exception;