mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 07:22:21 +00:00
15 lines
244 B
TypeScript
15 lines
244 B
TypeScript
|
export class Error {
|
||
|
|
||
|
name: string = "Error";
|
||
|
message: string;
|
||
|
stack: string = ""; // TODO
|
||
|
|
||
|
constructor(message: string = "") {
|
||
|
this.message = message;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class RangeError extends Error {
|
||
|
name: string = "RangeError";
|
||
|
}
|