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
osStatusintThe 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
messagestringThe custom error message to provide. Can be null.
osStatusintThe
OSStatuserror code to provide.
Methods
ThrowIfError(int)
Throws an appropriate exception for the given OS status code.
public static void ThrowIfError(int osStatus)
Parameters
osStatusintThe OS status code to translate to an exception.