@iotize/device-com-ble.cordova
Version:
Bluetooth Low Energy (BLE) for IoTize modules Plugin
30 lines (29 loc) • 1.37 kB
TypeScript
import { CodeError } from '@iotize/common/error';
export declare class CordovaBLEError extends CodeError {
static invalidErrorResult(errObject: {
code?: string | undefined;
message?: string | undefined;
}): CordovaBLEError;
static invalidErrorCode(errObject: {
code?: string | undefined;
message?: string | undefined;
}): CordovaBLEError;
static invalidNativeCallResult(result: any, cause: Error): CordovaBLEError;
static isValidErrorCode(code: string): code is keyof typeof CordovaBLEError.Code;
static iotizeBLEMissing(): CordovaBLEError;
}
export declare namespace CordovaBLEError {
enum Code {
InternalError = "CordovaBLEErrorInternalError",
IllegalArgument = "CordovaBLEErrorIllegalArgument",
BLENotAvailable = "CordovaBLEErrorBLENotAvailable",
InvalidMacAddress = "InvalidMacAddressInvalidMacAddress",
ConnectionError = "CordovaBLEErrorConnectionError",
RequestError = "CordovaBLEErrorRequestError",
LocationServiceDisabled = "CordovaBLEErrorLocationServiceDisabled",
DisconnectError = "CordovaBLEErrorDisconnectError",
IllegalAction = "CordovaBLEErrorIllegalAction",
NotConnectedError = "CordovaBLEErrorNotConnectedError",
StatusCodeError = "CordovaBLEErrorStatusCodeError"
}
}