Table of Contents

Class CoreAudioException

Namespace
NAudio.MacOS.CoreAudio
Assembly
NAudio.MacOS.dll

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

osStatus int

The 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

message string

The custom error message to provide. Can be null.

osStatus int

The OSStatus error code to provide.

Methods

ThrowIfError(int)

Throws a more appropriate exception for the specified status code.

public static void ThrowIfError(int osStatus)

Parameters

osStatus int

The status code to create and throw an exception for.

Exceptions

InvalidOperationException
NotSupportedException
UnauthorizedAccessException
InsufficientMemoryException
ArgumentException
NotImplementedException
FileNotFoundException
CoreAudioException