C# Class GitHub.Services.StandardUserErrors

Datei anzeigen Open project: github/VisualStudio

Private Properties

Property Type Description
Defaults GitHub.Services.ErrorMessage
Defaults GitHub.Services.ErrorMessage
DisplayErrorMessage IObservable
DisplayErrorMessage IObservable
GetUserFriendlyError UserError
Map GitHub.Services.ErrorMap
OpenBrowser IRecoveryCommand
OpenPathInExplorer IRecoveryCommand
Throw IObservable

Public Methods

Method Description
GetUserFriendlyErrorMessage ( this exception, ErrorType errorType ) : string
ParseUnverifiedSshKeyMessageFromExceptionMessage ( Exception exception ) : string
ShowCloneError ( this exception, ErrorType errorType, string displayName, string repositoryLocalWorkingDirectory ) : IObservable
ShowUserErrorMessage ( ErrorType errorType ) : IObservable
ShowUserErrorMessage ( this exception, ErrorType errorType ) : IObservable
ShowUserErrorThatRequiresNavigatingToBilling ( this exception, IAccount account ) : IObservable
ShowUserThatRepoAlreadyExists ( string repositoryName, string fullPath ) : IObservable

Private Methods

Method Description
Defaults ( string description ) : GitHub.Services.ErrorMessage
Defaults ( string heading, string description ) : GitHub.Services.ErrorMessage
DisplayErrorMessage ( ErrorType errorType, object messageArgs, IEnumerable recoveryOptions ) : IObservable
DisplayErrorMessage ( this exception, ErrorType errorType, object messageArgs, IEnumerable recoveryOptions ) : IObservable
GetUserFriendlyError ( this exception, ErrorType errorType ) : UserError
Map ( GitHub.Services.ErrorMessage defaultMessage ) : GitHub.Services.ErrorMap
OpenBrowser ( string text, string url ) : IRecoveryCommand
OpenPathInExplorer ( string path ) : IRecoveryCommand
Throw ( this error ) : IObservable

Method Details

GetUserFriendlyErrorMessage() public static method

public static GetUserFriendlyErrorMessage ( this exception, ErrorType errorType ) : string
exception this
errorType ErrorType
return string

ParseUnverifiedSshKeyMessageFromExceptionMessage() public static method

public static ParseUnverifiedSshKeyMessageFromExceptionMessage ( Exception exception ) : string
exception System.Exception
return string

ShowCloneError() public static method

public static ShowCloneError ( this exception, ErrorType errorType, string displayName, string repositoryLocalWorkingDirectory ) : IObservable
exception this
errorType ErrorType
displayName string
repositoryLocalWorkingDirectory string
return IObservable

ShowUserErrorMessage() public static method

public static ShowUserErrorMessage ( ErrorType errorType ) : IObservable
errorType ErrorType
return IObservable

ShowUserErrorMessage() public static method

public static ShowUserErrorMessage ( this exception, ErrorType errorType ) : IObservable
exception this
errorType ErrorType
return IObservable

ShowUserErrorThatRequiresNavigatingToBilling() public static method

public static ShowUserErrorThatRequiresNavigatingToBilling ( this exception, IAccount account ) : IObservable
exception this
account IAccount
return IObservable

ShowUserThatRepoAlreadyExists() public static method

public static ShowUserThatRepoAlreadyExists ( string repositoryName, string fullPath ) : IObservable
repositoryName string
fullPath string
return IObservable