Class HResultException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jitsi.impl.neomedia.jmfext.media.protocol.wasapi.HResultException
-
- All Implemented Interfaces:
Serializable
public class HResultException extends Exception
Implements an Exception which represents an HRESULT value.- Author:
- Lyubomir Marinov
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HResultException(int hresult)Initializes a new HResultException which is to represent a specific HRESULT value.HResultException(int hresult, String message)Initializes a new HResultException which is to represent a specific HRESULT value and have a specific detail message.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHResult()Gets the HRESULT value represented by this instance.static StringtoString(int hresult)Returns a String representation of a specific HRESULT value.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HResultException
public HResultException(int hresult)
Initializes a new HResultException which is to represent a specific HRESULT value. The detail message of the new instance is derived from the the specified HRESULT value.- Parameters:
hresult- the HRESULT value to be represented by the new instance
-
HResultException
public HResultException(int hresult, String message)Initializes a new HResultException which is to represent a specific HRESULT value and have a specific detail message.- Parameters:
hresult- the HRESULT value to be represented by the new instancemessage- the detail message to initialize the new instance with
-
-
Method Detail
-
getHResult
public int getHResult()
Gets the HRESULT value represented by this instance.- Returns:
- the HRESULT value represented by this instance
-
toString
public static String toString(int hresult)
Returns a String representation of a specific HRESULT value.- Parameters:
hresult- the HRESULT value of which a String representation is to be returned- Returns:
- a String representation of the specified hresult
-
-