Skip to content

Commit 885d17b

Browse files
docs(session): Clarify Unhandled state and hybrid-only recording
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent d3af8ad commit 885d17b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎sentry/src/main/java/io/sentry/Session.java‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ public enum State {
2222
Exited,
2323
Crashed,
2424
Abnormal,
25+
/**
26+
* Unhandled error the process survived. Not used while the session is alive; {@link
27+
* Session#end()} sets this. Native crashes still end as {@link #Crashed}.
28+
*/
2529
Unhandled
2630
}
2731

@@ -211,6 +215,9 @@ public boolean hasNonTerminatingUnhandledError() {
211215
* #end()} the session is finalized as {@link State#Unhandled} unless a crash escalated it to
212216
* {@link State#Crashed} first.
213217
*
218+
* <p>Hybrid SDKs whose unhandled errors do not kill the process. Native Java/Android capture
219+
* should not call this.
220+
*
214221
* @return whether the session was updated, i.e. false if it had already reached a terminal state
215222
*/
216223
@ApiStatus.Internal

0 commit comments

Comments
 (0)