mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
19 lines
316 B
TypeScript
19 lines
316 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";
|
|
}
|
|
|
|
export class TypeError extends Error {
|
|
name: string = "TypeError";
|
|
}
|