|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.java.sip.communicator.service.media.MediaException
public class MediaException
Thrown when errors occur in the media package.
| Field Summary | |
|---|---|
static int |
GENERAL_ERROR
Set when no other error code can describe the exception that occurred. |
static int |
INTERNAL_ERROR
Set when an operation fails for implementation specific reasons. |
static int |
IO_ERROR
Set when an operation fails because of an input/output error. |
static int |
NETWORK_ERROR
Set when command fails due to a failure in network communications or a transport error. |
static int |
SERVICE_NOT_STARTED
Set to indicate that the service implementation needs to be started (initialized) before calling the method that threw the exception. |
static int |
UNSUPPORTED_FORMAT_SET_ERROR
Set when the media service is requested to receive or transmit in a format set that is not supported by the implementation. |
| Constructor Summary | |
|---|---|
MediaException(String message,
int errorCode)
Creates an exception with the specified error message and error code. |
|
MediaException(String message,
int errorCode,
Throwable cause)
Creates an exception with the specified message, errorCode and cause. |
|
| Method Summary | |
|---|---|
int |
getErrorCode()
Obtain the error code value. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int GENERAL_ERROR
public static final int NETWORK_ERROR
public static final int SERVICE_NOT_STARTED
public static final int INTERNAL_ERROR
public static final int IO_ERROR
public static final int UNSUPPORTED_FORMAT_SET_ERROR
| Constructor Detail |
|---|
public MediaException(String message,
int errorCode)
message - A message containing details on the error that caused the
exceptionerrorCode - the error code of the exception (one of the error code
fields of this class)
public MediaException(String message,
int errorCode,
Throwable cause)
message - A message containing details on the error that caused the
exceptionerrorCode - the error code of the exception (one of the error code
fields of this class)cause - the error that caused this exception| Method Detail |
|---|
public int getErrorCode()
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||