megaten
Version:
An unofficial collection of data from the Shin Megami Tensei and Persona games.
17 lines (16 loc) • 620 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MegatenError = void 0;
/** An exception thrown from the megaten package */
class MegatenError extends Error {
/** The input that caused the exception */
structureName;
/** The type of structure where no structure matched the input */
structureType;
constructor(structureName, structureType) {
super(`No ${structureType} named "${structureName}" was found`);
this.structureName = structureName;
this.structureType = structureType;
}
}
exports.MegatenError = MegatenError;