Class AlsaException
Exception thrown when an ALSA (libasound) call returns an error.
public class AlsaException : Exception, ISerializable
- Inheritance
-
AlsaException
- Implements
- Inherited Members
Constructors
AlsaException(int)
Creates a new AlsaException from an ALSA error code.
public AlsaException(int errorCode)
Parameters
errorCodeintThe negative error code returned by libasound.
AlsaException(int, string)
Creates a new AlsaException from an ALSA error code, prefixed with the name of the failing call.
public AlsaException(int errorCode, string function)
Parameters
errorCodeintThe negative error code returned by libasound.
functionstringThe libasound function that failed.
Properties
ErrorCode
The raw ALSA error code (a negative errno-style value).
public int ErrorCode { get; }
Property Value
Function
The libasound function that failed, or null when not supplied.
public string Function { get; }
Property Value
Methods
ThrowIfError(int, string)
Throws an AlsaException if errorCode
indicates failure (a negative value).
public static void ThrowIfError(int errorCode, string function)