C# Class withSIX.Core.Applications.Services.ErrorHandlerr

Mostra file Open project: SIXNetworks/withSIX.Desktop

Public Methods

Method Description
GenerateDiagnosticZip ( IAbsoluteFilePath path ) : System.Threading.Tasks.Task
HandleException ( Exception ex, string action = "Action" ) : UserErrorModel
SetExceptionHandler ( IExceptionHandler handler ) : void
TryAction ( Func act, string action = null ) : Task

Private Methods

Method Description
GetLogFilesDictionary ( IAbsoluteDirectoryPath path ) : string>.Dictionary

Method Details

GenerateDiagnosticZip() public static method

public static GenerateDiagnosticZip ( IAbsoluteFilePath path ) : System.Threading.Tasks.Task
path IAbsoluteFilePath
return System.Threading.Tasks.Task

HandleException() public static method

public static HandleException ( Exception ex, string action = "Action" ) : UserErrorModel
ex System.Exception
action string
return withSIX.Core.Applications.Errors.UserErrorModel

SetExceptionHandler() public static method

public static SetExceptionHandler ( IExceptionHandler handler ) : void
handler IExceptionHandler
return void

TryAction() public static method

public static TryAction ( Func act, string action = null ) : Task
act Func
action string
return Task