Skip to content

Commit 60bfd79

Browse files
authored
Merge pull request #163 from backtrace-labs/bugfix/exception_classifier
Update UnhandledExceptionAttributeType classifier
2 parents 059cd59 + 0c7549f commit 60bfd79

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
- Replaced deprecated BluetoothAdapter with BluetoothManager
7878
- Added missing ACCESS_WIFI_STATE and BLUETOOTH permissions to example app and Tests
7979
- Replaced androidx NonNull with jetbrains NotNull annotation
80-
- Use "Unhandled Exception" error type in the unhnadled exception handler callback
80+
- Use "Unhandled Exception" error type in the unhandled exception handler callback
8181

8282
## Version 3.7.6
8383

backtrace-library/src/androidTest/java/backtraceio/library/models/UncaughtExceptionHandlerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void testUncaughtException() throws InvocationTargetException, NoSuchMeth
9292
assertNull(testedReportData.getReport().message);
9393
assertTrue(testedReportData.getReport().diagnosticStack.size() > 0);
9494
assertEquals("java.lang.IllegalArgumentException", testedReportData.getReport().classifier);
95-
assertEquals("Unhandled Exception", testedReportData.getReport().attributes.get("error.type"));
95+
assertEquals("Unhandled exception", testedReportData.getReport().attributes.get("error.type"));
9696
assertTrue(testedReportData.getReport().exceptionTypeReport);
9797
}
9898

@@ -129,7 +129,7 @@ public void testUncaughtError() throws InvocationTargetException, NoSuchMethodEx
129129
assertNull(testedReportData.getReport().message);
130130
assertTrue(testedReportData.getReport().diagnosticStack.size() > 0);
131131
assertEquals("java.lang.OutOfMemoryError", testedReportData.getReport().classifier);
132-
assertEquals("Unhandled Exception", testedReportData.getReport().attributes.get("error.type"));
132+
assertEquals("Unhandled exception", testedReportData.getReport().attributes.get("error.type"));
133133
assertTrue(testedReportData.getReport().exceptionTypeReport);
134134
}
135135

backtrace-library/src/main/java/backtraceio/library/models/BacktraceAttributeConsts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
public class BacktraceAttributeConsts {
44
public static final String ErrorType = "error.type";
55
public static final String CrashAttributeType = "Crash";
6-
public static final String UnhandledExceptionAttributeType = "Unhandled Exception";
6+
public static final String UnhandledExceptionAttributeType = "Unhandled exception";
77
public static final String HandledExceptionAttributeType = "Exception";
88
public static final String MessageAttributeType = "Message";
99
public static final String AnrAttributeType = "Hang";

0 commit comments

Comments
 (0)