Table of Contents

Class AudioFileException

Namespace
NAudio.MacOS.AudioToolbox
Assembly
NAudio.MacOS.dll

Provides the base exception type for errors originating from the usage of the Audio File Services API.

public class AudioFileException : AudioToolboxException, ISerializable
Inheritance
AudioFileException
Implements
Derived
Inherited Members

Constructors

AudioFileException(int)

Constructs a new instance of the AudioFileException class with the specified OSStatus error code.

public AudioFileException(int osStatus)

Parameters

osStatus int

The status code.

AudioFileException(string, int)

Constructs a new instance of the AudioFileException class with the specified OSStatus error code, as well as the custom error message to provide.

public AudioFileException(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 an appropriate exception for the given OS status code.

public static void ThrowIfError(int osStatus)

Parameters

osStatus int

The OS status code to translate to an exception.

Exceptions

AudioFileException
NotSupportedException
UnauthorizedAccessException
InvalidOperationException
OverflowException
InvalidDataException
ObjectDisposedException
EndOfStreamException
FileNotFoundException