/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { camelize, capitalize, decamelize, MatterAggregateError } from "#general";
import { StatusResponseError } from "#types";
class PathError extends StatusResponseError {
  #id;
  #path;
  constructor({ path, status: { id, status, clusterStatus }, message }) {
    if (message === void 0) {
      message = capitalize(decamelize(camelize(id), " "));
    }
    super(message, status, clusterStatus);
    this.#id = id;
    this.#path = path;
  }
  get id() {
    return this.#id;
  }
  get path() {
    return this.#path;
  }
}
class AggregatePathError extends MatterAggregateError {
}
export {
  AggregatePathError,
  PathError
};
//# sourceMappingURL=PathError.js.map
