File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ Exception copy logic is straightforward:
63
63
1 ) If the exception class implements [ CopyableThrowable] , [ CopyableThrowable.createCopy] is used.
64
64
` null ` can be returned from ` createCopy ` to opt-out specific exception from being recovered.
65
65
2 ) If the exception class has class-specific fields not inherited from Throwable, the exception is not copied.
66
- 3 ) Otherwise, one of the public exception's constructor is invoked reflectively with an optional ` initCause ` call.
66
+ 3 ) Otherwise, one of the public exception's constructor is invoked reflectively with an optional ` initCause ` call.
67
+ 4 ) If the reflective copy has a changed message (exception class modifies 'message' parameter before passing it to the superclass),
68
+ the exception is not copied in order to preserve a human-readable message. [ CopyableThrowable] does not have such limitation.
67
69
68
70
## Debug agent
69
71
You can’t perform that action at this time.
0 commit comments