C# Class Appspotdemo.Mono.Droid.UnhandledExceptionHandler

Singleton helper: install a default unhandled exception handler which shows an informative dialog and kills the app. Useful for apps whose error-handling consists of throwing RuntimeExceptions. NOTE: almost always more useful to Thread.setDefaultUncaughtExceptionHandler() rather than Thread.setUncaughtExceptionHandler(), to apply to background threads as well.
Inheritance: Java.Lang.Object, Java.Lang.System.Threading.Thread.IUncaughtExceptionHandler
Afficher le fichier Open project: kenneththorman/appspotdemo-mono

Méthodes publiques

Méthode Description
OnClick ( object sender, DialogClickEventArgs args ) : void
Run ( ) : void
UncaughtException ( Java unusedThread, Java e ) : void
UnhandledExceptionHandler ( Android.App.Activity activity ) : System

Private Methods

Méthode Description
getRecursiveStackTrace ( Exception t ) : string
getTopLevelCauseMessage ( Exception t ) : string

Method Details

OnClick() public méthode

public OnClick ( object sender, DialogClickEventArgs args ) : void
sender object
args DialogClickEventArgs
Résultat void

Run() public méthode

public Run ( ) : void
Résultat void

UncaughtException() public méthode

public UncaughtException ( Java unusedThread, Java e ) : void
unusedThread Java
e Java
Résultat void

UnhandledExceptionHandler() public méthode

public UnhandledExceptionHandler ( Android.App.Activity activity ) : System
activity Android.App.Activity
Résultat System