/**
 * @license
 * Copyright 2025-2026 Open Home Foundation
 * SPDX-License-Identifier: Apache-2.0
 */
class MatterError extends Error {
}
class InvalidServerVersion extends MatterError {
}
class CommandTimeoutError extends MatterError {
  constructor(command, timeoutMs) {
    super(`Command '${command}' timed out after ${timeoutMs}ms`);
    this.command = command;
    this.timeoutMs = timeoutMs;
    this.name = "CommandTimeoutError";
  }
  command;
  timeoutMs;
}
class ConnectionClosedError extends MatterError {
  constructor(message = "Connection closed while command was pending") {
    super(message);
    this.name = "ConnectionClosedError";
  }
}
export {
  CommandTimeoutError,
  ConnectionClosedError,
  InvalidServerVersion,
  MatterError
};
//# sourceMappingURL=exceptions.js.map
