|
Jitsi: 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
java.lang.RuntimeException
net.java.sip.communicator.service.contactlist.MetaContactListException
public class MetaContactListException
Exceptions of this class get thrown whenever an error occurs while modifying the contents of the MetaContactList. Depending on the type of error that caused them MetaContactListException-s come with a corresponding error code which may have a value among one of the CODE_XXX static fields.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
MetaContactListException(String message,
Exception cause,
int code)
Creates a MetaContactListException with the specified message cause and code. |
|
MetaContactListException(String message,
int code)
Creates a MetaContactListException with the specified message error code. |
|
| Method Summary | |
|---|---|
int |
getErrorCode()
Returns an int describing the nature of the exception. |
| 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 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
| Constructor Detail |
|---|
public MetaContactListException(String message,
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(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.| Method Detail |
|---|
public int getErrorCode()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||