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

15 lines
459 B
JavaScript

import { CommandResponseError } from "./CommandResponseError";
export class StructureNotFoundError extends CommandResponseError {
structureId;
constructor(structureId) {
super(`Structure with ID "${structureId}" not found.`);
this.name = 'StructureNotFoundError';
this.structureId = structureId;
}
getRawMessage() {
return { translate: 'construct.error.structureNotFound', with: [this.structureId] };
}
}