Skip to content

Commit

Permalink
Document message identity in debugging.md
Browse files Browse the repository at this point in the history
Addresses #1931
  • Loading branch information
qwwdfsad committed Jun 7, 2021
1 parent 113e034 commit b5eb8c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/topics/debugging.md
Expand Up @@ -63,7 +63,9 @@ Exception copy logic is straightforward:
1) If the exception class implements [CopyableThrowable], [CopyableThrowable.createCopy] is used.
`null` can be returned from `createCopy` to opt-out specific exception from being recovered.
2) If the exception class has class-specific fields not inherited from Throwable, the exception is not copied.
3) Otherwise, one of the public exception's constructor is invoked reflectively with an optional `initCause` call.
3) Otherwise, one of the public exception's constructor is invoked reflectively with an optional `initCause` call.
4) If the reflective copy has a changed message (exception class modifies 'message' parameter before passing it to the superclass),
the exception is not copied in order to preserve a human-readable message. [CopyableThrowable] does not have such limitation.

## Debug agent

Expand Down

0 comments on commit b5eb8c4

Please sign in to comment.