first commit
This commit is contained in:
13
xterminal/source/base/error.ts
Normal file
13
xterminal/source/base/error.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export class XError extends Error {
|
||||
constructor(message: string) {
|
||||
message = "[x] " + message;
|
||||
super(message);
|
||||
this.name = "XTerminalError";
|
||||
}
|
||||
}
|
||||
|
||||
export const TARGET_INVALID_ERR =
|
||||
"mount: A parent HTMLElement (target) is required";
|
||||
|
||||
export const TARGET_NOT_CONNECTED_ERR =
|
||||
"'mount' was called on an HTMLElement (target) that is not attached to DOM.";
|
||||
Reference in New Issue
Block a user