Class PortAudioException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jitsi.impl.neomedia.portaudio.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 Summary
Constructors Constructor Description PortAudioException(String message)Initializes a new PortAudioException instance with a specific detail message.PortAudioException(String message, long errorCode, int hostApiType)Initializes a new PortAudioException instance with a specific detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetErrorCode()Gets the code of the error as defined by the native PortAudio library represented by this instance if it is known.Pa.HostApiTypeIdgetHostApiType()Gets the host API, if any, which returned the error code and (detailed) message represented by this instance.StringtoString()Returns a human-readable representation/description of this Throwable.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
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 witherrorCode-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.paNoErrorif 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
-
-