@som30ind/cucumber-reporting
Version:
Cucumber HTML Report Generator inspired from Maven Cucumber Reporting
56 lines (55 loc) • 2.31 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidDataException = exports.JsonParseException = exports.NotImplementedException = exports.IllegalArgumentException = exports.RuntimeException = exports.Exception = exports.InvalidDataExceptionCode = exports.JsonParseExceptionCode = void 0;
var JsonParseExceptionCode;
(function (JsonParseExceptionCode) {
JsonParseExceptionCode[JsonParseExceptionCode["INVALID_JSON_INPUT"] = 0] = "INVALID_JSON_INPUT";
JsonParseExceptionCode[JsonParseExceptionCode["NO_INPUT_FILES"] = 1] = "NO_INPUT_FILES";
JsonParseExceptionCode[JsonParseExceptionCode["NO_FEATURES"] = 2] = "NO_FEATURES";
})(JsonParseExceptionCode = exports.JsonParseExceptionCode || (exports.JsonParseExceptionCode = {}));
var InvalidDataExceptionCode;
(function (InvalidDataExceptionCode) {
InvalidDataExceptionCode[InvalidDataExceptionCode["INVALID_DATA_VALUE"] = 0] = "INVALID_DATA_VALUE";
})(InvalidDataExceptionCode = exports.InvalidDataExceptionCode || (exports.InvalidDataExceptionCode = {}));
class Exception extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
exports.Exception = Exception;
class RuntimeException extends Error {
constructor(message) {
super(message);
this.name = 'RuntimeException';
}
}
exports.RuntimeException = RuntimeException;
class IllegalArgumentException extends RuntimeException {
constructor(message) {
super(message);
this.name = 'IllegalArgumentException';
}
}
exports.IllegalArgumentException = IllegalArgumentException;
class NotImplementedException extends Exception {
constructor(message = 'Method not implemented.') {
super(message);
this.name = 'NotImplementedException';
}
}
exports.NotImplementedException = NotImplementedException;
class CommonException extends RuntimeException {
constructor(code, message) {
super(message);
this.code = code;
this.message = message;
}
}
class JsonParseException extends CommonException {
}
exports.JsonParseException = JsonParseException;
class InvalidDataException extends CommonException {
}
exports.InvalidDataException = InvalidDataException;