C# 클래스 withSIX.Core.Presentation.Services.DefaultExceptionHandler

상속: IExceptionHandler
파일 보기 프로젝트 열기: SIXNetworks/withSIX.Desktop

공개 메소드들

메소드 설명
HandleException ( Exception ex, string action = "Action" ) : UserErrorModel
TryExecuteAction ( Func action, string message = null ) : Task

보호된 메소드들

메소드 설명
DefaultExceptionHandler ( IEnumerable ehs ) : System
GetHumanReadableActionName ( string action ) : string
Handle ( ChecksumException ex, string action ) : UserErrorModel
Handle ( CompressedFileException ex, string action ) : UserErrorModel
Handle ( Exception ex, string action ) : UserErrorModel
Handle ( HttpRequestException ex ) : UserErrorModel
Handle ( OperationCanceledException ex, string action ) : UserErrorModel
Handle ( RepositoryLockException ex, string action ) : UserErrorModel
Handle ( SQLiteException ex, string action ) : UserErrorModel
Handle ( UnauthorizedAccessException ex, string action ) : UserErrorModel
HandleExceptionInternal ( Exception ex, string action = "Action" ) : UserErrorModel
UnwrapExceptionIfNeeded ( Exception ex ) : Exception

비공개 메소드들

메소드 설명
HandleCorruptionException ( Exception ex, string action ) : UserErrorModel

메소드 상세

DefaultExceptionHandler() 보호된 메소드

protected DefaultExceptionHandler ( IEnumerable ehs ) : System
ehs IEnumerable
리턴 System

GetHumanReadableActionName() 보호된 정적인 메소드

protected static GetHumanReadableActionName ( string action ) : string
action string
리턴 string

Handle() 보호된 정적인 메소드

protected static Handle ( ChecksumException ex, string action ) : UserErrorModel
ex withSIX.Sync.Core.Repositories.Internals.ChecksumException
action string
리턴 withSIX.Core.Applications.Errors.UserErrorModel

Handle() 보호된 정적인 메소드

protected static Handle ( CompressedFileException ex, string action ) : UserErrorModel
ex CompressedFileException
action string
리턴 withSIX.Core.Applications.Errors.UserErrorModel

Handle() 보호된 정적인 메소드

protected static Handle ( Exception ex, string action ) : UserErrorModel
ex System.Exception
action string
리턴 withSIX.Core.Applications.Errors.UserErrorModel

Handle() 보호된 정적인 메소드

protected static Handle ( HttpRequestException ex ) : UserErrorModel
ex System.Net.Http.HttpRequestException
리턴 withSIX.Core.Applications.Errors.UserErrorModel

Handle() 보호된 정적인 메소드

protected static Handle ( OperationCanceledException ex, string action ) : UserErrorModel
ex System.OperationCanceledException
action string
리턴 withSIX.Core.Applications.Errors.UserErrorModel

Handle() 보호된 정적인 메소드

protected static Handle ( RepositoryLockException ex, string action ) : UserErrorModel
ex RepositoryLockException
action string
리턴 withSIX.Core.Applications.Errors.UserErrorModel

Handle() 보호된 정적인 메소드

protected static Handle ( SQLiteException ex, string action ) : UserErrorModel
ex SQLiteException
action string
리턴 withSIX.Core.Applications.Errors.UserErrorModel

Handle() 보호된 정적인 메소드

protected static Handle ( UnauthorizedAccessException ex, string action ) : UserErrorModel
ex System.UnauthorizedAccessException
action string
리턴 withSIX.Core.Applications.Errors.UserErrorModel

HandleException() 공개 메소드

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

HandleExceptionInternal() 보호된 메소드

protected HandleExceptionInternal ( Exception ex, string action = "Action" ) : UserErrorModel
ex System.Exception
action string
리턴 withSIX.Core.Applications.Errors.UserErrorModel

TryExecuteAction() 공개 메소드

public TryExecuteAction ( Func action, string message = null ) : Task
action Func
message string
리턴 Task

UnwrapExceptionIfNeeded() 보호된 정적인 메소드

protected static UnwrapExceptionIfNeeded ( Exception ex ) : Exception
ex System.Exception
리턴 System.Exception