Skip to content

Commit ff32eaa

Browse files
authored
Update HandledErrorLog.java to improve naming (#595)
* Update HandledErrorLog.java to increase naming * apply the rename and get build pass
1 parent dae533a commit ff32eaa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

common/src/main/java/com/microsoft/hydralab/common/appcenter/AppCenterErrorLogHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public HandledErrorLog createErrorLog(final Thread thread, final Throwable throw
122122
/* Uncaught exception or managed exception. */
123123
errorLog.setFatal(fatal);
124124
if (!fatal) {
125-
errorLog.setType(HandledErrorLog.TYPE);
125+
errorLog.setType(HandledErrorLog.WARNING_TYPE);
126126
}
127127

128128
/* Application launch time. */

common/src/main/java/com/microsoft/hydralab/common/appcenter/entity/HandledErrorLog.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class HandledErrorLog implements Log {
1717
/**
1818
* Log type.
1919
*/
20-
public static final String TYPE = "handledError";
20+
public static final String WARNING_TYPE = "handledError";
2121

2222
/**
2323
* Exception associated to the error.
@@ -47,6 +47,10 @@ public class HandledErrorLog implements Log {
4747
* The optional user identifier.
4848
*/
4949
private String userId;
50+
/**
51+
* "managedError" -> AppCenter Crash
52+
* "handledError" -> AppCenter Error
53+
*/
5054
private String type = "managedError";
5155

5256
/**

0 commit comments

Comments
 (0)