@syniol/iso-3166
Version:
ISO-3166 Standard for Country codes
28 lines (27 loc) • 1.4 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidNumericCodeNameException = exports.InvalidAlpha3CodeNameException = exports.InvalidAlpha2CodeNameException = exports.InvalidCountryNameException = void 0;
var Exception = (function (_super) {
__extends(Exception, _super);
function Exception() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Exception;
}(Error));
exports.InvalidCountryNameException = new Exception('invalid country name is given');
exports.InvalidAlpha2CodeNameException = new Exception('invalid Alpha-2 Code is given');
exports.InvalidAlpha3CodeNameException = new Exception('invalid Alpha-3 Code is given');
exports.InvalidNumericCodeNameException = new Exception('invalid Numeric Code is given');