action-debian-package/node_modules/luxon/src/impl/invalid.js
Dawid Dziurla 9308795b8b
update
2020-03-26 15:37:35 +01:00

15 lines
282 B
JavaScript

export default class Invalid {
constructor(reason, explanation) {
this.reason = reason;
this.explanation = explanation;
}
toMessage() {
if (this.explanation) {
return `${this.reason}: ${this.explanation}`;
} else {
return this.reason;
}
}
}