|
|||||||||
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 |
LIMIT_ERROR
The limit (memory, items) in the client has been reached |
static int |
MEMORY_ERROR
Out of memory error. |
static int |
STORAGE_ERROR
Storage 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
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 |