mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-14 06:20:47 +00:00
update
This commit is contained in:
14
node_modules/luxon/src/impl/invalid.js
generated
vendored
Normal file
14
node_modules/luxon/src/impl/invalid.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user