Package org.openhab.core.audio
Class UnsupportedAudioFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openhab.core.audio.AudioException
org.openhab.core.audio.UnsupportedAudioFormatException
- All Implemented Interfaces:
 Serializable
Thrown when a requested format is not supported by an 
AudioSource
 or AudioSink implementation- Author:
 - Harald Kuhn - Initial contribution, Kelly Davis - Modified to match discussion in #584
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionUnsupportedAudioFormatException(String message, @Nullable AudioFormat unsupportedFormat) Constructs a new exception with the specified detail message and unsupported format.UnsupportedAudioFormatException(String message, @Nullable AudioFormat unsupportedFormat, @Nullable Throwable cause) Constructs a new exception with the specified detail message, unsupported format, and cause. - 
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
UnsupportedAudioFormatException
public UnsupportedAudioFormatException(String message, @Nullable AudioFormat unsupportedFormat, @Nullable Throwable cause) Constructs a new exception with the specified detail message, unsupported format, and cause.- Parameters:
 message- Detail messageunsupportedFormat- Unsupported formatcause- The cause
 - 
UnsupportedAudioFormatException
Constructs a new exception with the specified detail message and unsupported format.- Parameters:
 message- Detail messageunsupportedFormat- Unsupported format
 
 - 
 - 
Method Details
- 
getUnsupportedFormat
Gets the unsupported format- Returns:
 - The unsupported format
 
 
 -