com.ibm.mobileservices.isync
Class ISyncException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.mobileservices.isync.ISyncException

public class ISyncException
extends java.lang.Exception

This class serves as the general class of exceptions produced by the ISync synchronization engine.


Constructor Summary
ISyncException()
          Simple constructor.
ISyncException(int code)
          Constructor adding code value.
ISyncException(int code, java.lang.String reason)
          Constructor adding code value and reason
ISyncException(java.lang.String reason)
          Constructor adding reason.
ISyncException(java.lang.Throwable cause, int code)
          Constructor adding Throwable object and code.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the original cause for the exception or null if its not available.
 int getCode()
          Return the error code of this exception.
 
Methods inherited from class java.lang.Throwable
getMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ISyncException

public ISyncException()
Simple constructor.


ISyncException

public ISyncException(int code)
Constructor adding code value.

Parameters:
code - an int specifying the exception code

ISyncException

public ISyncException(java.lang.String reason)
Constructor adding reason.

Parameters:
reason - a String specifying the exception message

ISyncException

public ISyncException(int code,
                      java.lang.String reason)
Constructor adding code value and reason

Parameters:
code - an int specifying the exception code
reason - a String specifying the exception message

ISyncException

public ISyncException(java.lang.Throwable cause,
                      int code)
Constructor adding Throwable object and code.

Parameters:
cause - a Throwable object specifying the cause
code - an int specifying the exception code
Method Detail

getCode

public int getCode()
Return the error code of this exception.

Returns:
with code of:
  • ISync.EXC_NOT_SUPPORTED
  • ISync.EXC_NOT_EXIST
  • ISync.EXC_PREF_UNKNOWN_ID
  • ISync.EXC_PREF_ERROR
  • ISync.EXC_TIMEOUT
  • ISync.EXC_ILLEGAL_ARG
  • ISync.EXC_ILLEGAL_STATE
  • ISync.EXC_STORE_IN_USE
  • ISync.EXC_ILLEGAL_ACCESS
  • ISync.EXC_INVALID_FORMAT
  • ISync.EXC_CONFIG_ERROR
  • ISync.EXC_CONFIG_SYNC
  • ISync.EXC_AUTH_FAILED
  • ISync.EXC_INCOMP_VERSION
  • ISync.EXC_INVALID_SESSION
  • ISync.EXC_SYNC_GROUP
  • ISync.EXC_REGISTER_DEVICE
  • ISync.EXC_SERVER_FORBIDDEN
  • ISync.EXC_SERVER_NOT_FOUND
  • ISync.EXC_SERVER_ERROR
  • ISync.EXC_SERVER_NOT_AVAIL
  • ISync.EXC_NET_OPEN_LIB
  • ISync.EXC_NET_RESOLVE_HOST
  • ISync.EXC_NET_OPEN_CONN
  • ISync.EXC_NET_UNKNOWN

getCause

public java.lang.Throwable getCause()
Returns the original cause for the exception or null if its not available.

Returns:
original cause for exception


(c) Copyright IBM Corp. 2001, 2002, 2003. All Rights Reserved.