summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRHeniz <heniganr1@gmail.com>2021-10-25 09:14:54 -0400
committerRHeniz <heniganr1@gmail.com>2021-10-25 09:14:54 -0400
commit74e2a649d457cc1a7f9aef9e2112bdc75447eee0 (patch)
treef89fc23648eec09605c6b6ba82e363f06ea23448
parent08def323c33fdc8035a63cb1e9b8e79f3a98743c (diff)
downloadsdl_android-74e2a649d457cc1a7f9aef9e2112bdc75447eee0.tar.gz
Use ErrorCode enum instead of hard coded values
-rw-r--r--base/src/main/java/com/smartdevicelink/session/BaseSdlSession.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/src/main/java/com/smartdevicelink/session/BaseSdlSession.java b/base/src/main/java/com/smartdevicelink/session/BaseSdlSession.java
index 8f2b3740d..26627a879 100644
--- a/base/src/main/java/com/smartdevicelink/session/BaseSdlSession.java
+++ b/base/src/main/java/com/smartdevicelink/session/BaseSdlSession.java
@@ -254,8 +254,8 @@ public abstract class BaseSdlSession implements ISdlProtocol, ISecurityInitializ
byte[] jsonData;
JSONObject jsonObject = new JSONObject();
try {
- jsonObject.put("id", 254);
- jsonObject.put("text", "Error value for testing");
+ jsonObject.put("id", SecurityQueryErrorCode.ERROR_UNKNOWN_INTERNAL_ERROR.getValue());
+ jsonObject.put("text", SecurityQueryErrorCode.ERROR_UNKNOWN_INTERNAL_ERROR.getName());
jsonData = jsonObject.toString().getBytes();
} catch (JSONException e) {
DebugTool.logError(TAG, "JSON exception when constructing handshake error Notification");