| 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 6e9dae6412c951cf1d9eba2fd8bdc31988a3ab45..2dc39c7b6817ba9240fbcfdb37d8cfffa50d705c 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
|
| @@ -24,17 +24,24 @@ DOMException* BluetoothError::take(ScriptPromiseResolver*, const WebBluetoothErr
|
| MAP_ERROR(CharacteristicNoLongerExists, InvalidStateError, "GATT Characteristic no longer exists.");
|
|
|
| // NetworkErrors:
|
| - MAP_ERROR(GATTOperationInProgress, NetworkError, "GATT operation already in progress.");
|
| - MAP_ERROR(GATTNotPaired, NetworkError, "GATT Error: Not paired.");
|
| - MAP_ERROR(DeviceNoLongerInRange, NetworkError, "Bluetooth Device is no longer in range.");
|
| - MAP_ERROR(ConnectUnknownError, NetworkError, "Unknown error when connecting to the device.");
|
| MAP_ERROR(ConnectAlreadyInProgress, NetworkError, "Connection already in progress.");
|
| - MAP_ERROR(ConnectUnknownFailure, NetworkError, "Connection failed for unknown reason.");
|
| - MAP_ERROR(ConnectAuthFailed, NetworkError, "Authentication failed.");
|
| + MAP_ERROR(ConnectAttributeLengthInvalid, NetworkError, "Write operation exceeds the maximum length of the attribute.");
|
| MAP_ERROR(ConnectAuthCanceled, NetworkError, "Authentication canceled.");
|
| + MAP_ERROR(ConnectAuthFailed, NetworkError, "Authentication failed.");
|
| MAP_ERROR(ConnectAuthRejected, NetworkError, "Authentication rejected.");
|
| MAP_ERROR(ConnectAuthTimeout, NetworkError, "Authentication timeout.");
|
| + MAP_ERROR(ConnectConnectionCongested, NetworkError, "Remote device connection is congested.");
|
| + MAP_ERROR(ConnectInsufficientEncryption, NetworkError, "Insufficient encryption for a given operation");
|
| + MAP_ERROR(ConnectOffsetInvalid, NetworkError, "Read or write operation was requested with an invalid offset.");
|
| + MAP_ERROR(ConnectReadNotPermitted, NetworkError, "GATT read operation is not permitted.");
|
| + MAP_ERROR(ConnectRequestNotSupported, NetworkError, "The given request is not supported.");
|
| + MAP_ERROR(ConnectUnknownError, NetworkError, "Unknown error when connecting to the device.");
|
| + MAP_ERROR(ConnectUnknownFailure, NetworkError, "Connection failed for unknown reason.");
|
| MAP_ERROR(ConnectUnsupportedDevice, NetworkError, "Unsupported device.");
|
| + MAP_ERROR(ConnectWriteNotPermitted, NetworkError, "GATT write operation is not permitted.");
|
| + MAP_ERROR(DeviceNoLongerInRange, NetworkError, "Bluetooth Device is no longer in range.");
|
| + MAP_ERROR(GATTNotPaired, NetworkError, "GATT Error: Not paired.");
|
| + MAP_ERROR(GATTOperationInProgress, NetworkError, "GATT operation already in progress.");
|
| MAP_ERROR(UntranslatedConnectErrorCode, NetworkError, "Unknown ConnectErrorCode.");
|
|
|
| // NotFoundErrors:
|
|
|