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