Skip to content

Commit 74e2a64

Browse files
committed
Use ErrorCode enum instead of hard coded values
1 parent 08def32 commit 74e2a64

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

base/src/main/java/com/smartdevicelink/session/BaseSdlSession.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ protected void processControlService(ProtocolMessage msg) {
254254
byte[] jsonData;
255255
JSONObject jsonObject = new JSONObject();
256256
try {
257-
jsonObject.put("id", 254);
258-
jsonObject.put("text", "Error value for testing");
257+
jsonObject.put("id", SecurityQueryErrorCode.ERROR_UNKNOWN_INTERNAL_ERROR.getValue());
258+
jsonObject.put("text", SecurityQueryErrorCode.ERROR_UNKNOWN_INTERNAL_ERROR.getName());
259259
jsonData = jsonObject.toString().getBytes();
260260
} catch (JSONException e) {
261261
DebugTool.logError(TAG, "JSON exception when constructing handshake error Notification");

0 commit comments

Comments
 (0)