public class MediaException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
GENERAL_ERROR
The error code value which specifies that the MediaException
carrying it does not give more information about its specifics.
|
Constructor and Description |
---|
MediaException(java.lang.String message)
Initializes a new MediaException instance with a specific
detailed message and
GENERAL_ERROR error code. |
MediaException(java.lang.String message,
int errorCode)
Initializes a new MediaException instance with a specific
detailed message and a specific error code.
|
MediaException(java.lang.String message,
int errorCode,
java.lang.Throwable cause)
Initializes a new MediaException instance with a specific
detailed message, a specific error code and a specific Throwable
cause.
|
MediaException(java.lang.String message,
java.lang.Throwable cause)
Initializes a new MediaException instance with a specific
detailed message,
GENERAL_ERROR error code and a specific
Throwable cause. |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Gets the error code carried by this MediaException which gives
more information about the specifics of this MediaException.
|
public static final int GENERAL_ERROR
public MediaException(java.lang.String message)
GENERAL_ERROR
error code.message
- the detailed message to initialize the new instance withpublic MediaException(java.lang.String message, int errorCode)
message
- the detailed message to initialize the new instance witherrorCode
- the error code which is to give more information about
the specifics of the new instancepublic MediaException(java.lang.String message, java.lang.Throwable cause)
GENERAL_ERROR
error code and a specific
Throwable cause.message
- the detailed message to initialize the new instance withcause
- the Throwable which is to be carried by the new
instance and which is to be reported as the cause for throwing the new
instance. If cause is null, the cause for throwing the
new instance is considered to be unknown.public MediaException(java.lang.String message, int errorCode, java.lang.Throwable cause)
message
- the detailed message to initialize the new instance witherrorCode
- the error code which is to give more information about
the specifics of the new instancecause
- the Throwable which is to be carried by the new
instance and which is to be reported as the cause for throwing the new
instance. If cause is null, the cause for throwing the
new instance is considered to be unknown.public int getErrorCode()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.