Class UnsupportedAudioStreamException

All Implemented Interfaces:
Serializable

@NonNullByDefault public class UnsupportedAudioStreamException extends AudioException
Thrown when a requested AudioStream is not supported by an AudioSource or AudioSink implementation
Author:
Christoph Weitkamp - Initial contribution
See Also:
  • Constructor Details

    • UnsupportedAudioStreamException

      public UnsupportedAudioStreamException(String message, @Nullable Class<? extends @Nullable AudioStream> unsupportedAudioStreamClass, @Nullable Throwable cause)
      Constructs a new exception with the specified detail message, unsupported format, and cause.
      Parameters:
      message - The message
      unsupportedAudioStreamClass - The unsupported audio stream class
      cause - The cause
    • UnsupportedAudioStreamException

      public UnsupportedAudioStreamException(String message, @Nullable Class<? extends @Nullable AudioStream> unsupportedAudioStreamClass)
      Constructs a new exception with the specified detail message and unsupported format.
      Parameters:
      message - The message
      unsupportedAudioStreamClass - The unsupported audio stream class
  • Method Details

    • getUnsupportedAudioStreamClass

      public @Nullable Class<? extends @Nullable AudioStream> getUnsupportedAudioStreamClass()
      Gets the unsupported audio stream class.
      Returns:
      The unsupported audio stream class