Class AudioPolicyException
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.dll
Represents an exception that is thrown when there is a violation of the sound system policy. This exception indicates that an operation has attempted to perform an action that is not compliant with the established audio policies, which may affect audio playback or manipulation within the application.
C#Copypublic class AudioPolicyException : InvalidOperationException, ISerializable
- Inheritance
-
objectSystem.ExceptionSystem.SystemExceptionSystem.InvalidOperationExceptionAudioPolicyException
- Implements
-
System.Runtime.Serialization.ISerializable
Constructors
AudioPolicyException()
Initializes a new instance of the AudioPolicyException class without any error message. This constructor is typically used when the exception is thrown without specific details about the error.
Declaration
C#Copypublic AudioPolicyException()
AudioPolicyException(string, Exception)
Initializes a new instance of the AudioPolicyException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
C#Copypublic AudioPolicyException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message that explains the reason for the exception. |
| System.Exception | innerException | The exception that is the cause of the current exception.. |
AudioPolicyException(string)
Initializes a new instance of the AudioPolicyException class with a specified error message. This message provides additional context regarding the reason for the exception, which can be useful for debugging and logging purposes.
Declaration
C#Copypublic AudioPolicyException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message that explains the reason for the exception. |