|
||||||||||
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
com.funambol.util.CodedException
public class CodedException
This exception represents the base exception for coded error conditions. It makes possible for the receiver to analize the error condition using one exception class. This class defines only the basic codes. Classes deriving this this can define other codes.
Field Summary | |
---|---|
static int |
CONCURRENCE_ERROR
Another sync is in progress |
static int |
CONN_NOT_FOUND
|
static int |
CONNECTION_BLOCKED_BY_USER
|
static int |
DATA_NULL
These excpetions are generated by the HttpTranportAgent |
static int |
ERR_READING_COMPRESSED_DATA
|
static int |
ILLEGAL_ARGUMENT
|
static int |
LIMIT_ERROR
The limit (memory, items) in the client has been reached |
static int |
MEMORY_ERROR
Out of memory error. |
static int |
OPERATION_INTERRUPTED
|
static int |
READ_SERVER_RESPONSE_ERROR
|
static int |
STORAGE_ERROR
Storage error. |
static int |
WRITE_SERVER_REQUEST_ERROR
|
Constructor Summary | |
---|---|
CodedException(int code,
java.lang.String msg)
Constructs an instance of CodedException with thei
code and specified detail message. |
Method Summary | |
---|---|
int |
getCode()
Returns the code of this 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 STORAGE_ERROR
public static final int MEMORY_ERROR
public static final int LIMIT_ERROR
public static final int CONCURRENCE_ERROR
public static final int DATA_NULL
public static final int CONN_NOT_FOUND
public static final int ILLEGAL_ARGUMENT
public static final int WRITE_SERVER_REQUEST_ERROR
public static final int ERR_READING_COMPRESSED_DATA
public static final int CONNECTION_BLOCKED_BY_USER
public static final int READ_SERVER_RESPONSE_ERROR
public static final int OPERATION_INTERRUPTED
Constructor Detail |
---|
public CodedException(int code, java.lang.String msg)
CodedException
with thei
code and specified detail message.
code
- the error codemsg
- the detail message.Method Detail |
---|
public int getCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |