Skip to content

Commit

Permalink
[Feat][SDK-348] Add uncaught exception to payload (#319)
Browse files Browse the repository at this point in the history
* test: expect is_uncaught field in data

* feat(payload): add is_uncaught field in data
  • Loading branch information
christianbuon authored Oct 3, 2024
1 parent 2bbb12c commit 6bfe332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ public Map<String, Object> asJson() {
values.put("notifier", notifier);
}

values.put("is_uncaught", isUncaught);

return values;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public void shouldReturnAsJson() {
expected.put("notifier", data.getNotifier());
}

expected.put("is_uncaught", data.isUncaught());

assertThat(data.asJson(), is(expected));
}
}

0 comments on commit 6bfe332

Please sign in to comment.