Class PortAudioException

  • All Implemented Interfaces:
    Serializable

    public class PortAudioException
    extends Exception
    Implements Exception for the PortAudio capture and playback system.
    Author:
    Lyubomir Marinov, Damian Minkov
    See Also:
    Serialized Form
    • Constructor Detail

      • PortAudioException

        public PortAudioException​(String message)
        Initializes a new PortAudioException instance with a specific detail message.
        Parameters:
        message - the detail message to initialize the new instance with
      • PortAudioException

        public PortAudioException​(String message,
                                  long errorCode,
                                  int hostApiType)
        Initializes a new PortAudioException instance with a specific detail message.
        Parameters:
        message - the detail message to initialize the new instance with
        errorCode -
        hostApiType -
    • Method Detail

      • getErrorCode

        public long getErrorCode()
        Gets the code of the error as defined by the native PortAudio library represented by this instance if it is known.
        Returns:
        the code of the error as defined by the native PortAudio library represented by this instance if it is known or Pa.paNoError if it is not known
      • getHostApiType

        public Pa.HostApiTypeId getHostApiType()
        Gets the host API, if any, which returned the error code and (detailed) message represented by this instance.
        Returns:
        the host API, if any, which returned the error code and (detailed) message represented by this instance; otherwise, null
      • toString

        public String toString()
        Returns a human-readable representation/description of this Throwable.
        Overrides:
        toString in class Throwable
        Returns:
        a human-readable representation/description of this Throwable