@sports-alliance/sports-lib
Version:
A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc
14 lines (13 loc) • 567 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EmptyEventLibError = void 0;
const event_lib_error_1 = require("./event-lib.error");
class EmptyEventLibError extends event_lib_error_1.EventLibError {
constructor(message = 'No activities found') {
super(message, null);
this.code = EmptyEventLibError.CODE;
Object.setPrototypeOf(this, EmptyEventLibError.prototype); // Set the prototype explicitly.
}
}
exports.EmptyEventLibError = EmptyEventLibError;
EmptyEventLibError.CODE = 'EVENT_EMPTY_ERROR';