com.funambol.util
Class CodedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.funambol.util.CodedException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConnectionDeniedException

public class CodedException
extends java.lang.RuntimeException

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.

See Also:
Serialized Form

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

STORAGE_ERROR

public static final int STORAGE_ERROR
Storage error. (Problem accessing the backend storage, read or write)

See Also:
Constant Field Values

MEMORY_ERROR

public static final int MEMORY_ERROR
Out of memory error. It's not used at the moment

See Also:
Constant Field Values

LIMIT_ERROR

public static final int LIMIT_ERROR
The limit (memory, items) in the client has been reached

See Also:
Constant Field Values

CONCURRENCE_ERROR

public static final int CONCURRENCE_ERROR
Another sync is in progress

See Also:
Constant Field Values

DATA_NULL

public static final int DATA_NULL
These excpetions are generated by the HttpTranportAgent

See Also:
Constant Field Values

CONN_NOT_FOUND

public static final int CONN_NOT_FOUND
See Also:
Constant Field Values

ILLEGAL_ARGUMENT

public static final int ILLEGAL_ARGUMENT
See Also:
Constant Field Values

WRITE_SERVER_REQUEST_ERROR

public static final int WRITE_SERVER_REQUEST_ERROR
See Also:
Constant Field Values

ERR_READING_COMPRESSED_DATA

public static final int ERR_READING_COMPRESSED_DATA
See Also:
Constant Field Values

CONNECTION_BLOCKED_BY_USER

public static final int CONNECTION_BLOCKED_BY_USER
See Also:
Constant Field Values

READ_SERVER_RESPONSE_ERROR

public static final int READ_SERVER_RESPONSE_ERROR
See Also:
Constant Field Values

OPERATION_INTERRUPTED

public static final int OPERATION_INTERRUPTED
See Also:
Constant Field Values
Constructor Detail

CodedException

public CodedException(int code,
                      java.lang.String msg)
Constructs an instance of CodedException with thei code and specified detail message.

Parameters:
code - the error code
msg - the detail message.
Method Detail

getCode

public int getCode()
Returns the code of this exception



Copyright © 2001-2009 Funambol.