Skip to content

Commit

Permalink
GH-1376: Better to raise CodecException in LwM2mNodeSenMLDecoder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Warmek authored and sbernard31 committed Jan 16, 2023
1 parent a963d77 commit 6a1ff2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public TimestampedLwM2mNodes decodeTimestampedNodes(byte[] content, LwM2mModel m
}

return nodes.build();
} catch (SenMLException e) {
} catch (SenMLException | IllegalArgumentException e) {
String hexValue = content != null ? Hex.encodeHexString(content) : "";
throw new CodecException(e, "Unable to decode nodes : %s", hexValue, e);
}
Expand Down

0 comments on commit 6a1ff2d

Please sign in to comment.