ec-sri-invoice-signer
Version:
Ecuador SRI invoice signer.
23 lines (22 loc) • 728 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.XmlFormatError = exports.UnsuportedPkcs12Error = void 0;
class XmlFormatError extends Error {
constructor() {
const message = "There's a format error in your XML file";
super(message);
this.name = 'XmlFormatError';
}
}
exports.XmlFormatError = XmlFormatError;
class UnsuportedPkcs12Error extends Error {
constructor(extraMessage) {
let message = "The used .p12 file is not supported";
if (extraMessage) {
message += `: ${extraMessage}`;
}
super(message);
this.name = 'UnsuportedPkcs12Error';
}
}
exports.UnsuportedPkcs12Error = UnsuportedPkcs12Error;