Class CoreAudioException
Provides the base class for exceptions thrown by the Core Audio framework wrappers.
public class CoreAudioException : MacException, ISerializable
- Inheritance
-
CoreAudioException
- Implements
- Derived
- Inherited Members
Constructors
CoreAudioException(int)
Constructs a new instance of the MacException class with the specified
OSStatus error code.
public CoreAudioException(int osStatus)
Parameters
osStatusintThe status code.
Remarks
This constructor variant will attempt to lookup the error message for the given status code, if possible.
CoreAudioException(string, int)
Constructs a new instance of the CoreAudioException class with the specified
OSStatus error code, as well as the custom error message to provide.
public CoreAudioException(string message, int osStatus)
Parameters
messagestringThe custom error message to provide. Can be null.
osStatusintThe
OSStatuserror code to provide.
Methods
ThrowIfError(int)
Throws a more appropriate exception for the specified status code.
public static void ThrowIfError(int osStatus)
Parameters
osStatusintThe status code to create and throw an exception for.