export class EngineError extends Error {
    code;
    constructor(code, message, options) {
        super(message, options);
        this.code = code;
        this.name = new.target.name;
    }
}
export class LifecycleError extends EngineError {
    constructor(code, message, options) {
        super(`LIFECYCLE_${code}`, message, options);
    }
}
export class ValidationError extends EngineError {
    constructor(code, message, options) {
        super(`VALIDATION_${code}`, message, options);
    }
}
export class ResourceError extends EngineError {
    constructor(code, message, options) {
        super(`RESOURCE_${code}`, message, options);
    }
}
//# sourceMappingURL=Errors.js.map