C# Class Microsoft.Languages.Editor.Controller.Constants.VSConstants.ErrorHandler

Datei anzeigen Open project: Microsoft/RTVS

Public Methods

Method Description
Failed ( int hr ) : bool

Checks if a HRESULT is an error return code.

Succeeded ( int hr ) : bool

Checks if a HRESULT is a success return code.

ThrowOnFailure ( int hr ) : int

Checks if the parameter is a success or failure HRESULT and throws an exception in case of failure.

Private Methods

Method Description
ErrorHandler ( ) : System

Method Details

Failed() public static method

Checks if a HRESULT is an error return code.
public static Failed ( int hr ) : bool
hr int The HRESULT to test.
return bool

Succeeded() public static method

Checks if a HRESULT is a success return code.
public static Succeeded ( int hr ) : bool
hr int The HRESULT to test.
return bool

ThrowOnFailure() public static method

Checks if the parameter is a success or failure HRESULT and throws an exception in case of failure.
public static ThrowOnFailure ( int hr ) : int
hr int The HRESULT to test.
return int