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
ファイルを表示 Open project: kenneththorman/appspotdemo-mono

Public Methods

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

Private Methods

Method Description
getRecursiveStackTrace ( Exception t ) : string
getTopLevelCauseMessage ( Exception t ) : string

Method Details

OnClick() public method

public OnClick ( object sender, DialogClickEventArgs args ) : void
sender object
args DialogClickEventArgs
return void

Run() public method

public Run ( ) : void
return void

UncaughtException() public method

public UncaughtException ( Java unusedThread, Java e ) : void
unusedThread Java
e Java
return void

UnhandledExceptionHandler() public method

public UnhandledExceptionHandler ( Android.App.Activity activity ) : System
activity Android.App.Activity
return System