/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import type { BehaviorBacking } from "#behavior/internal/BehaviorBacking.js"; import { ImplementationError, MatterAggregateError, MatterError } from "@matter/general"; import type { ReadResult } from "@matter/protocol"; import type { Status } from "@matter/types"; import type { Endpoint } from "./Endpoint.js"; /** * Thrown when an error occurs during initialization of a behavior. */ export declare class BehaviorInitializationError extends MatterError { constructor(message: string, cause?: unknown); } /** * Thrown when an error occurs initializing the behaviors of an endpoint. */ export declare class EndpointBehaviorsError extends MatterAggregateError { constructor(causes: Iterable); } /** * Thrown when an error occurs initializing essential parts of an endpoint during initialization. */ export declare class EndpointPartsError extends MatterError { constructor(causes: Iterable); } /** * Thrown when a requested child {@link Endpoint} does not exist. */ export declare class PartNotFoundError extends MatterError { } /** * Thrown when a behavior is not present on an endpoint. */ export declare class EndpointBehaviorNotPresentError extends MatterError { constructor(behaviorId: string); } /** * Thrown when a behavior is present on an endpoint but the requested operation requires a cluster behavior. */ export declare class EndpointBehaviorNotClusterError extends MatterError { constructor(behaviorId: string); } /** * Thrown when an attribute is not present on a behavior. */ export declare class AttributeNotPresentError extends MatterError { constructor(behaviorId: string, attributeName: string); } /** * Describes a single failed attribute read. */ export interface EndpointReadFailure { readonly path: ReadResult.ConcreteAttributePath; readonly status: Status; readonly clusterStatus?: number; } /** * Thrown when attribute reads fail for one or more paths. */ export declare class EndpointReadFailedError extends MatterError { readonly failed: ReadonlyArray; readonly partial: unknown; constructor(detail: { failed: ReadonlyArray; partial: unknown; }); } /** * Thrown when a group-level operation is not supported. */ export declare class InvalidGroupOperationError extends ImplementationError { } //# sourceMappingURL=errors.d.ts.map