/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Message } from "#codec/MessageCodec.js";
import { Status, StatusResponseError } from "#types";
import { MatterError, NoResponseTimeoutError } from "@matter/general";
class RetransmissionLimitReachedError extends NoResponseTimeoutError {
}
class UnexpectedMessageError extends MatterError {
  constructor(message, session, receivedMessage) {
    super(`(${Message.diagnosticsOf(session, receivedMessage)}) ${message}`);
    this.receivedMessage = receivedMessage;
  }
}
class SessionClosedError extends MatterError {
}
class NoAssociatedFabricError extends StatusResponseError {
  constructor(message) {
    super(message, Status.UnsupportedAccess);
  }
}
export {
  NoAssociatedFabricError,
  RetransmissionLimitReachedError,
  SessionClosedError,
  UnexpectedMessageError
};
//# sourceMappingURL=errors.js.map
