1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum CapabilityError {
5 #[error("Invalid peripheral reference")]
6 Error,
7}
8
9#[derive(Error, Debug)]
11pub enum BluetoothError {
12 #[error("The selected default bluetooth adapter [0] is invalid")]
13 InvalidBluetoothAdapter,
14
15 #[error("Invalid peripheral reference")]
16 InvalidPeripheralReference,
17
18 #[error("Unable to unpack peripheral properties")]
19 InvalidPeriperipheralProperty,
20
21 #[error("No write characteristic found that satisfy target value")]
22 NotFoundTargetCharacteristic,
23
24 #[error(transparent)]
25 InternalError(#[from] btleplug::Error),
26
27 #[error("Invalid or absent characteristic")]
28 InvalidCharacteristic,
29}