{"version":3,"file":"ESPRMMatterFabricError.cjs","sources":["../../../../src/utils/error/ESPRMMatterFabricError.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { ESPBaseError } from \"@espressif/rainmaker-base-sdk\";\nimport { MatterErrorLabels } from \"../constants\";\nimport { matterFabricErrorMessages } from \"./errorMessages\";\n\n/**\n * Represents a fabric management error encountered during Matter fabric operations.\n *\n * This class is used to handle errors related to Matter fabric management operations,\n * including fabric creation, deletion, conversion, access control, and configuration.\n *\n * @extends ESPBaseError\n */\nexport class ESPRMMatterFabricError extends ESPBaseError {\n  /**\n   * Creates an instance of `ESPRMMatterFabricError`.\n   *\n   * @param code - The error code corresponding to a specific Matter fabric error message\n   *               from `matterFabricErrorMessages`.\n   */\n  constructor(code: keyof typeof matterFabricErrorMessages) {\n    super(\n      MatterErrorLabels.ESPRMMatterFabricError,\n      code,\n      matterFabricErrorMessages\n    );\n  }\n}\n"],"names":["ESPBaseError","MatterErrorLabels","matterFabricErrorMessages"],"mappings":";;;;;;AAAA;;;;AAIG;AAMH;;;;;;;AAOG;AACG,MAAO,sBAAuB,SAAQA,6BAAY,CAAA;AACtD;;;;;AAKG;AACH,IAAA,WAAA,CAAY,IAA4C,EAAA;QACtD,KAAK,CACHC,2BAAiB,CAAC,sBAAsB,EACxC,IAAI,EACJC,uCAAyB,CAC1B;IACH;AACD;;;;"}