Search Issue Tracker

Fixed in 4.6.X

Votes

0

Found in

4.6.0b17

Issue ID

628655

Regression

Yes

Regression: Exceptions which are manually thrown in Button callback events are obscured

UI

-

To Reproduce:

1. Open the project from the attached 'buttonReproProj.zip' and run.

2. Click on 'Throw Exception' and 'Invoke Button' buttons.

3. Notice if 'OnButton' is called by actually clicking the button the thrown 'InvalidOperationException' is not identified correctly(?) by Unity. All data related to the actual exception, it's type, the stack trace are not shown, neither in the Console nor the in the Editor.log.

4. Calling the event through onClick.Invoke (); does not obscure the aforementioned information.

5. Uncomment the try/catch block, notice that if the exception is caught it's name and stack-trace are not hidden.

Regression in b15

Add comment

Log in to post comment