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 SummaryConstructorsConstructorDescriptionUnsupportedAudioFormatException(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 SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
UnsupportedAudioFormatExceptionpublic 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 message
- unsupportedFormat- Unsupported format
- cause- The cause
 
- 
UnsupportedAudioFormatExceptionConstructs a new exception with the specified detail message and unsupported format.- Parameters:
- message- Detail message
- unsupportedFormat- Unsupported format
 
 
- 
- 
Method Details- 
getUnsupportedFormatGets the unsupported format- Returns:
- The unsupported format
 
 
-