matterbridge-roborock-vacuum-plugin
Version:
Matterbridge Roborock Vacuum Plugin
21 lines • 1.43 kB
TypeScript
/**
* Error handling module.
*
* Provides a hierarchical error structure for type-safe error handling throughout the plugin.
* All errors extend from BaseError and include error codes, status codes, and metadata.
*
* @example
* ```typescript
* import { DeviceNotFoundError, AuthenticationError } from './errors';
*
* throw new DeviceNotFoundError('abc123');
* throw new AuthenticationError('Invalid credentials', { username: 'user@example.com' });
* ```
*/
export { BaseError } from './BaseError.js';
export { AuthenticationError, InvalidCredentialsError, InvalidVerificationCodeError, RateLimitExceededError, TokenExpiredError, VerificationCodeExpiredError, } from './AuthenticationError.js';
export { DeviceCommandError, DeviceConnectionError, DeviceError, DeviceInitializationError, DeviceNotFoundError, DeviceOfflineError, UnsupportedDeviceError, } from './DeviceError.js';
export { APIError, CommunicationError, DeserializationError, LocalNetworkError, MQTTConnectionError, NetworkError, ProtocolError, SerializationError, TimeoutError, } from './CommunicationError.js';
export { ConfigurationError, InvalidConfigurationError, InvalidRegionError, MissingConfigurationError, MissingCredentialsError, } from './ConfigurationError.js';
export { InvalidFormatError, InvalidParameterError, MissingParameterError, OutOfRangeError, ValidationError, } from './ValidationError.js';
//# sourceMappingURL=index.d.ts.map