{"version":3,"file":"ESPRMMatterValidationError.cjs","sources":["../../../../src/utils/error/ESPRMMatterValidationError.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 { matterValidationErrorMessages } from \"./errorMessages\";\n\n/**\n * Represents a validation error encountered during Matter-specific operations.\n *\n * This class is used to handle errors related to invalid or missing parameters\n * in Matter operations such as commissioning, fabric management, and certificate\n * handling.\n *\n * @extends ESPBaseError\n */\nexport class ESPRMMatterValidationError extends ESPBaseError {\n  /**\n   * Creates an instance of `ESPRMMatterValidationError`.\n   *\n   * @param code - The error code corresponding to a specific Matter validation error message\n   *               from `matterValidationErrorMessages`.\n   */\n  constructor(code: keyof typeof matterValidationErrorMessages) {\n    super(\n      MatterErrorLabels.ESPRMMatterValidationError,\n      code,\n      matterValidationErrorMessages\n    );\n  }\n}\n"],"names":["ESPBaseError","MatterErrorLabels","matterValidationErrorMessages"],"mappings":";;;;;;AAAA;;;;AAIG;AAMH;;;;;;;;AAQG;AACG,MAAO,0BAA2B,SAAQA,6BAAY,CAAA;AAC1D;;;;;AAKG;AACH,IAAA,WAAA,CAAY,IAAgD,EAAA;QAC1D,KAAK,CACHC,2BAAiB,CAAC,0BAA0B,EAC5C,IAAI,EACJC,2CAA6B,CAC9B;IACH;AACD;;;;"}