com.funambol.syncml.spds
Class SyncException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.funambol.util.CodedException
                  extended by com.funambol.syncml.spds.SyncException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CompressedSyncException, ConnectionDeniedException, ReadResponseException, WriteRequestException

public class SyncException
extends com.funambol.util.CodedException

This exception represents the base exception for synchronization related error conditions.

See Also:
Serialized Form

Field Summary
static int ACCESS_ERROR
          Error accessing a remote resource
static int AUTH_ERROR
          Authentication error from remote server
static int BACKEND_AUTH_ERROR
          Processing error in the backend connector
static int BACKEND_ERROR
          Processing error in the backend connector
static int CLIENT_ERROR
          Generic error caused by the client
static int CONN_NOT_FOUND
          Can not open connection error
static int CONNECTION_BLOCKED_BY_USER
          User denied permission
static int DATA_NULL
          Response data null
static int FORBIDDEN_ERROR
          User not authorized
static int ILLEGAL_ARGUMENT
          Malformed URL error
static int NOT_FOUND_URI_ERROR
          Source URI not found on server
static int READ_SERVER_RESPONSE_ERROR
          Network problem when reading response from server
static int SERVER_BUSY
          Server busy: another sync may be in progress
static int SERVER_CONNECTION_REQUEST_ERROR
          Network problem opening connection
static int SERVER_ERROR
          Generic server error
static int WRITE_SERVER_REQUEST_ERROR
          Network problem when reading response from server
 
Fields inherited from class com.funambol.util.CodedException
CONCURRENCE_ERROR, LIMIT_ERROR, MEMORY_ERROR, STORAGE_ERROR
 
Constructor Summary
SyncException(int code, java.lang.String msg)
          Constructs an instance of SyncException with the specified detail message.
 
Method Summary
 
Methods inherited from class com.funambol.util.CodedException
getCode
 
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

CLIENT_ERROR

public static final int CLIENT_ERROR
Generic error caused by the client

See Also:
Constant Field Values

AUTH_ERROR

public static final int AUTH_ERROR
Authentication error from remote server

See Also:
Constant Field Values

ACCESS_ERROR

public static final int ACCESS_ERROR
Error accessing a remote resource

See Also:
Constant Field Values

CONN_NOT_FOUND

public static final int CONN_NOT_FOUND
Can not open connection error

See Also:
Constant Field Values

DATA_NULL

public static final int DATA_NULL
Response data null

See Also:
Constant Field Values

ILLEGAL_ARGUMENT

public static final int ILLEGAL_ARGUMENT
Malformed URL error

See Also:
Constant Field Values

SERVER_ERROR

public static final int SERVER_ERROR
Generic server error

See Also:
Constant Field Values

SERVER_BUSY

public static final int SERVER_BUSY
Server busy: another sync may be in progress

See Also:
Constant Field Values

BACKEND_ERROR

public static final int BACKEND_ERROR
Processing error in the backend connector

See Also:
Constant Field Values

BACKEND_AUTH_ERROR

public static final int BACKEND_AUTH_ERROR
Processing error in the backend connector

See Also:
Constant Field Values

FORBIDDEN_ERROR

public static final int FORBIDDEN_ERROR
User not authorized

See Also:
Constant Field Values

NOT_FOUND_URI_ERROR

public static final int NOT_FOUND_URI_ERROR
Source URI not found on server

See Also:
Constant Field Values

READ_SERVER_RESPONSE_ERROR

public static final int READ_SERVER_RESPONSE_ERROR
Network problem when reading response from server

See Also:
Constant Field Values

WRITE_SERVER_REQUEST_ERROR

public static final int WRITE_SERVER_REQUEST_ERROR
Network problem when reading response from server

See Also:
Constant Field Values

SERVER_CONNECTION_REQUEST_ERROR

public static final int SERVER_CONNECTION_REQUEST_ERROR
Network problem opening connection

See Also:
Constant Field Values

CONNECTION_BLOCKED_BY_USER

public static final int CONNECTION_BLOCKED_BY_USER
User denied permission

See Also:
Constant Field Values
Constructor Detail

SyncException

public SyncException(int code,
                     java.lang.String msg)
Constructs an instance of SyncException with the specified detail message.

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


Copyright © 2006 Funambol.