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

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 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

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
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 © 2006 Funambol.