Class UnsupportedAudioFormatException

All Implemented Interfaces:
Serializable

@NonNullByDefault public class UnsupportedAudioFormatException extends AudioException
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 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 message
      unsupportedFormat - Unsupported format
      cause - The cause
    • UnsupportedAudioFormatException

      public UnsupportedAudioFormatException(String message, @Nullable AudioFormat unsupportedFormat)
      Constructs a new exception with the specified detail message and unsupported format.
      Parameters:
      message - Detail message
      unsupportedFormat - Unsupported format
  • Method Details

    • getUnsupportedFormat

      public @Nullable AudioFormat getUnsupportedFormat()
      Gets the unsupported format
      Returns:
      The unsupported format