public static String parseConnectionError(final int error) {
		return switch (error) {
			case GATT_SUCCESS -> "SUCCESS";
			case GATT_CONN_L2C_FAILURE -> "GATT CONN L2C FAILURE";
			case GATT_CONN_TIMEOUT -> "GATT CONN TIMEOUT";
			case GATT_CONN_TERMINATE_PEER_USER -> "GATT CONN TERMINATE PEER USER";
			case GATT_CONN_TERMINATE_LOCAL_HOST -> "GATT CONN TERMINATE LOCAL HOST";
			case GATT_CONN_FAIL_ESTABLISH -> "GATT CONN FAIL ESTABLISH";
			case GATT_CONN_LMP_TIMEOUT -> "GATT CONN LMP TIMEOUT";
			case GATT_CONN_CANCEL -> "GATT CONN CANCEL ";
			case GATT_ERROR -> "GATT ERROR"; // Device not reachable
			case GATT_TIMEOUT -> "GATT TIMEOUT"; // Device not reachable, new Error added in Android 15
			case GATT_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED -> "GATT PAIRING WITH UNIT KEY NOT SUPPORTED";
			default -> "UNKNOWN (" + error + ")";
		};
	}
Converts the connection status given by the
{@link android.bluetooth.BluetoothGattCallback#onConnectionStateChange(BluetoothGatt, int, int)}
to error name.

@param error the status number.
@return The error name as stated in the links in {@link GattError} documentation.
ble/src/main/java/no/nordicsemi/android/ble/error/GattError.java