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
osStatusintThe 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
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.