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

15 lines
456 B
JavaScript

import { CommandResponseError } from "./CommandResponseError";
export class InstanceNotFoundError extends CommandResponseError {
instanceName;
constructor(instanceName) {
super(`§cInstance "${instanceName}" not found.`);
this.name = 'InstanceNotFoundError';
this.instanceName = instanceName;
}
getRawMessage() {
return { translate: 'construct.error.instanceNotFound', with: [this.instanceName] };
}
}