이동
This commit is contained in:
@@ -15,4 +15,29 @@ export class RuntimeError extends Error {
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class NotYetImplemented extends Error {
|
||||
public override name = 'NotYetImplemented';
|
||||
override toString(): string {
|
||||
if (this.message) {
|
||||
return this.name + ': ' + this.message;
|
||||
}
|
||||
else {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export class InvalidArgument extends Error {
|
||||
public override name = 'InvalidArgument';
|
||||
override toString(): string {
|
||||
if (this.message) {
|
||||
return this.name + ': ' + this.message;
|
||||
}
|
||||
else {
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user