2018-02-19 12:35:28 +01:00

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";
}