Summary description for MmException.
More...
|
static void | Try (MmResult result, string function) |
| Throws an exception if the specified result is not equal to MmResult.NoError.
|
|
Summary description for MmException.
◆ MmException()
NAudio.MmException.MmException |
( |
MmResult | result, |
|
|
string | function ) |
|
inline |
Creates a new MmException.
- Parameters
-
result | The result returned by the Windows API call |
function | The name of the Windows API that failed |
◆ ErrorMessage()
static string NAudio.MmException.ErrorMessage |
( |
MmResult | result, |
|
|
string | function ) |
|
inlinestaticprivate |
Generates an error message based on the result and function name.
- Parameters
-
result | The result of the function call. |
function | The name of the function being called. |
- Returns
- A string containing the error message with the result and function name.
◆ Try()
static void NAudio.MmException.Try |
( |
MmResult | result, |
|
|
string | function ) |
|
inlinestatic |
Throws an exception if the specified result is not equal to MmResult.NoError.
- Parameters
-
result | The result to be checked. |
function | The name of the function where the exception is thrown. |
- Exceptions
-
MmException | Thrown when the specified result is not equal to MmResult.NoError. |
◆ function
string NAudio.MmException.function |
|
private |
◆ result
◆ Result
Returns the Windows API result.
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/Plugins/LiveMicrophone/lib/NAudio.Core/MmException.cs