Files
Construct-CN/packs/BP/scripts/classes/Errors/CommandResponseError.js
T
2026-05-20 17:08:03 -07:00

15 lines
362 B
JavaScript

export class CommandResponseError extends Error {
constructor(message) {
super(message);
this.name = 'CommandResponseError';
}
getRawMessage() {
throw new Error('getRawMessage() must be implemented by subclasses of CommandResponseError');
}
sendTo(source) {
source.sendMessage(this.getRawMessage());
}
}