@felixgeelhaar/govee-api-client
Version:
Enterprise-grade TypeScript client library for the Govee Developer REST API
26 lines • 935 B
TypeScript
import { GoveeApiClientError } from './GoveeApiClientError';
export declare class GoveeApiError extends GoveeApiClientError {
readonly code = "GOVEE_API_ERROR";
readonly statusCode: number;
readonly apiErrorCode: number | undefined;
readonly apiMessage: string | undefined;
constructor(message: string, statusCode: number, apiErrorCode?: number, apiMessage?: string, cause?: Error);
static fromResponse(statusCode: number, responseBody: {
code?: number;
message?: string;
} | string | null | undefined): GoveeApiError;
isDeviceOffline(): boolean;
isUnsupportedCommand(): boolean;
toObject(): {
name: string;
code: string;
message: string;
timestamp: string;
statusCode: number;
apiErrorCode?: number;
apiMessage?: string;
stack?: string;
cause?: unknown;
};
}
//# sourceMappingURL=GoveeApiError.d.ts.map