import ExceptionCode from "./ExceptionCode";
export default class Exception extends Error {
    get code() {
        return this._code;
    }
    set code(value) {
        this._code = value;
    }
    constructor(code, message) {
        super(message);
        this._code = ExceptionCode.GeneralException;
        this.code = code;
    }
    getMessage() {
        return this.message;
    }
}
//# sourceMappingURL=Exception.js.map