Table of Contents

Class ExtendedAudioFileException

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

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

public class ExtendedAudioFileException : AudioFileException, ISerializable
Inheritance
ExtendedAudioFileException
Implements
Inherited Members

Constructors

ExtendedAudioFileException(int)

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

public ExtendedAudioFileException(int osStatus)

Parameters

osStatus int

The status code.

ExtendedAudioFileException(string, int)

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

public ExtendedAudioFileException(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