Class AudioConverterException
- Namespace
- NAudio.MacOS.AudioToolbox
- Assembly
- NAudio.MacOS.dll
Provides the exception type for errors originating from the usage of the Audio Converter Services API.
public sealed class AudioConverterException : AudioToolboxException, ISerializable
- Inheritance
-
AudioConverterException
- Implements
- Inherited Members
Constructors
AudioConverterException(int)
Constructs a new instance of the AudioConverterException class with the specified
OSStatus error code.
public AudioConverterException(int osStatus)
Parameters
osStatusintThe status code.
AudioConverterException(string, int)
Constructs a new instance of the AudioConverterException class with the specified
OSStatus error code, as well as the custom error message to provide.
public AudioConverterException(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 specified status code.
Does not throw if the specified code is not an error
public static void ThrowIfError(int osStatus)
Parameters
osStatusintThe OS status code to throw an exception for