Skip to content

Commit ad30876

Browse files
committed
fix(json): add getExceptions() for JSON serialization compatibility
1 parent 1b5a5d9 commit ad30876

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

bugsnag/src/main/java/com/bugsnag/BugsnagEvent.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,16 @@ protected String getPayloadVersion() {
7373
return PAYLOAD_VERSION;
7474
}
7575

76+
@Expose
77+
protected List<BugsnagError> getExceptions() {
78+
return getErrors();
79+
}
80+
7681
/**
7782
* Get the exceptions for the report.
7883
*
7984
* @return the exceptions that make up the error.
8085
*/
81-
@Expose
8286
protected List<BugsnagError> getErrors() {
8387
List<BugsnagError> errors = new ArrayList<BugsnagError>();
8488
errors.add(error);

0 commit comments

Comments
 (0)