public class MetaContactListException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
static int |
CODE_CONTACT_ALREADY_EXISTS_ERROR
Indicates that the exception was caused by the fact that we tried to
add to our contact list a contact that was already in there.
|
static int |
CODE_GROUP_ALREADY_EXISTS_ERROR
Indicates that the exception was caused by the fact that we tried to
add to our contact list a group that was already in there.
|
static int |
CODE_LOCAL_IO_ERROR
Indicates that an error has occurred while performing a local IO
operation (e.g.
|
static int |
CODE_MOVE_CONTACT_ERROR
Indicates that the exception was caused by the fact that we tried to
move a contact that cannot be moved or an error occur during move.
|
static int |
CODE_NETWORK_ERROR
Indicates that a failure has occurred while trying to communicate
through the network.
|
static int |
CODE_NOT_SUPPORTED_OPERATION
Indicates that the last operation is not supported
from underling protocol.
|
static int |
CODE_REMOVE_GROUP_ERROR
Indicates that the exception was caused by the fact that we tried to
remove a group that cannot be removed or an error occur during remove.
|
static int |
CODE_UNKNOWN_ERROR
Indicates that the error which caused the exception was either unknown
or did not correspond to any of the other error codes
|
Constructor and Description |
---|
MetaContactListException(java.lang.String message,
java.lang.Exception cause,
int code)
Creates a MetaContactListException with the specified message cause and
code.
|
MetaContactListException(java.lang.String message,
int code)
Creates a MetaContactListException with the specified message error code.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns an int describing the nature of the exception.
|
public static final int CODE_LOCAL_IO_ERROR
public static final int CODE_NETWORK_ERROR
public static final int CODE_CONTACT_ALREADY_EXISTS_ERROR
public static final int CODE_GROUP_ALREADY_EXISTS_ERROR
public static final int CODE_UNKNOWN_ERROR
public static final int CODE_REMOVE_GROUP_ERROR
public static final int CODE_MOVE_CONTACT_ERROR
public static final int CODE_NOT_SUPPORTED_OPERATION
public MetaContactListException(java.lang.String message, java.lang.Exception cause, int code)
message
- a human readable message describing the exception.cause
- the Exception/Error (if any) that caused this Exception.code
- one of the status CODE_XXX variable, describing the nature
of the exception.public MetaContactListException(java.lang.String message, int code)
message
- a human readable message describing the exception.code
- one of the status CODE_XXX variable, describing the nature
of the exception.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.