title: catch all exceptions in android (xamarin)
body: <p>I am using following code from <a href="https://stackoverflow.com/questions/32229170/catch-all-possible-android-exception-globally-and-reload-application">here</a>.</p>
  
  <pre><code>Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
              @Override
              public void uncaughtException(Thread paramThread, Throwable paramThrowable) {
                  // Catch your exception
                  // Without System.exit() this will not work.
                  System.exit(2);
              }
          });
  </code></pre>
  
  <p>I want to use this in C#. But, I could not find equivalent methods to this approach in C#. I want to use <code>Toast.makeText()</code> to show the error to user.</p>