Index: third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp |
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp |
index 53d494138aee0d9c898e77f2b3f4250063982806..fe24514ee6b35875ca83823a0a7956ba30b1f1bf 100644 |
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp |
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp |
@@ -31,6 +31,8 @@ DOMException* BluetoothError::take( |
"GATT Service no longer exists."); |
MAP_ERROR(CHARACTERISTIC_NO_LONGER_EXISTS, InvalidStateError, |
"GATT Characteristic no longer exists."); |
+ MAP_ERROR(DESCRIPTOR_NO_LONGER_EXISTS, InvalidStateError, |
+ "GATT Descriptor no longer exists."); |
// NetworkErrors: |
MAP_ERROR(CONNECT_ALREADY_IN_PROGRESS, NetworkError, |
@@ -95,6 +97,10 @@ DOMException* BluetoothError::take( |
"No Characteristics with specified UUID found in Service."); |
MAP_ERROR(NO_CHARACTERISTICS_FOUND, NotFoundError, |
"No Characteristics found in service."); |
+ MAP_ERROR(DESCRIPTOR_NOT_FOUND, NotFoundError, |
+ "No Descriptors with specified UUID found in Characteristic."); |
+ MAP_ERROR(NO_DESCRIPTORS_FOUND, NotFoundError, |
+ "No Descriptors found in Characteristic."); |
MAP_ERROR(BLUETOOTH_LOW_ENERGY_NOT_AVAILABLE, NotFoundError, |
"Bluetooth Low Energy not available."); |
@@ -112,6 +118,9 @@ DOMException* BluetoothError::take( |
// SecurityErrors: |
MAP_ERROR(GATT_NOT_AUTHORIZED, SecurityError, |
"GATT operation not authorized."); |
+ MAP_ERROR(BLACKLISTED_DESCRIPTOR_UUID, SecurityError, |
+ "getDescriptor(s) called with blacklisted UUID. " |
+ "https://goo.gl/4NeimX"); |
MAP_ERROR(BLACKLISTED_CHARACTERISTIC_UUID, SecurityError, |
"getCharacteristic(s) called with blacklisted UUID. " |
"https://goo.gl/4NeimX"); |