C# Class NewTOAPIA.Media.WinMM.MmException

Summary description for MmException.
Inheritance: System.Exception
ファイルを表示 Open project: Wiladams/NewTOAPIA

Public Methods

Method Description
MmException ( MMSYSERROR result, string function ) : System
MmException ( int result, string function ) : System

Creates a new MmException

Try ( MMSYSERROR result, string function ) : void
Try ( int result, string function ) : void

Helper function to automatically raise an exception on failure

Private Methods

Method Description
ErrorMessage ( MMSYSERROR result, string function ) : string
ErrorMessage ( int result, string function ) : string

Method Details

MmException() public method

public MmException ( MMSYSERROR result, string function ) : System
result MMSYSERROR
function string
return System

MmException() public method

Creates a new MmException
public MmException ( int result, string function ) : System
result int The result returned by the Windows API call
function string The name of the Windows API that failed
return System

Try() public static method

public static Try ( MMSYSERROR result, string function ) : void
result MMSYSERROR
function string
return void

Try() public static method

Helper function to automatically raise an exception on failure
public static Try ( int result, string function ) : void
result int The result of the API call
function string The API function name
return void