wwwitsourceproviders-attendanceapi
Version:
Attendance Tracker
17 lines • 388 B
JavaScript
class AttendanceException {
constructor(c, msg) {
this.code = c;
this.message = msg;
}
addMessage(key, value) {
this.message[key] = value;
}
toString() {
var msg = '';
for (var prop in this.message) {
msg += prop + ':' + this.message[prop];
}
return msg;
}
}
module.exports = AttendanceException;