I am looking for a way to retrieve the current exception without having to pass it as a variable.
Suppose the following code
public void MakeItFail()
Try subscribing to this event when you first load your app.
AppDomain.CurrentDomain.FirstChanceException += (s, e) => { ShowMessage(e.Exception.Message); };
No, there isn't.
You need to use a parameter.