com.sap.ip.me.api.sync
Class SyncException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sap.ip.me.api.sync.SyncException
All Implemented Interfaces:
java.io.Serializable

public class SyncException
extends java.lang.Exception

Exception which will be thrown in case of any problems while synchronization. To be allow to differentiate between the reasons for this exception without sub-typing, there are some standard messages defined for this exception.

Author:
SAP
See Also:
Serialized Form

Field Summary
static java.lang.String RECEIVED_EMPTY_INBOUND
          Received empty inbound container file.
static java.lang.String RECEIVED_OLD_DATA
          Received old inbound data.
static java.lang.String RESPONSE_ANOTHER_FAILURE
          Message in case of invalid inbound file
static java.lang.String RESPONSE_FUNCTION_MODULE
          Message when response received from server didn't contain function module info
static java.lang.String RESPONSE_NOT_AUTHORIZED
          Message in case of invalid user data or password
static java.lang.String TRANSPORT_LAYER_HTTP_SYNC_EXCEPTION
          Message in case of problems with http
static java.lang.String TRANSPORT_LAYER_SYNC_EXCEPTION
          Message in case of problems with data transport layer between client and middleware
 
Constructor Summary
SyncException(java.lang.String s)
          Constructor for the SyncException object
 
Method Summary
 boolean isEmptyInboundReceived()
          Returns true iff this exception is caused by an empty inbound container file
 boolean isOldDataReceived()
          Returns true iff this exception is caused by old inbound data.
 
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

RESPONSE_ANOTHER_FAILURE

public static final java.lang.String RESPONSE_ANOTHER_FAILURE
Message in case of invalid inbound file

See Also:
Constant Field Values

RESPONSE_NOT_AUTHORIZED

public static final java.lang.String RESPONSE_NOT_AUTHORIZED
Message in case of invalid user data or password

See Also:
Constant Field Values

RESPONSE_FUNCTION_MODULE

public static final java.lang.String RESPONSE_FUNCTION_MODULE
Message when response received from server didn't contain function module info

See Also:
Constant Field Values

TRANSPORT_LAYER_SYNC_EXCEPTION

public static final java.lang.String TRANSPORT_LAYER_SYNC_EXCEPTION
Message in case of problems with data transport layer between client and middleware

See Also:
Constant Field Values

TRANSPORT_LAYER_HTTP_SYNC_EXCEPTION

public static final java.lang.String TRANSPORT_LAYER_HTTP_SYNC_EXCEPTION
Message in case of problems with http

See Also:
Constant Field Values

RECEIVED_OLD_DATA

public static final java.lang.String RECEIVED_OLD_DATA
Received old inbound data.

See Also:
Constant Field Values

RECEIVED_EMPTY_INBOUND

public static final java.lang.String RECEIVED_EMPTY_INBOUND
Received empty inbound container file. Maybe MI Sync Servlet system properties not maintained or wrong user / password data.

See Also:
Constant Field Values
Constructor Detail

SyncException

public SyncException(java.lang.String s)
Constructor for the SyncException object

Parameters:
s - Description of the Parameter
Method Detail

isOldDataReceived

public boolean isOldDataReceived()
Returns true iff this exception is caused by old inbound data. That means client got data again that was already processed.

Returns:
true iff this exception is caused by old inbound data

isEmptyInboundReceived

public boolean isEmptyInboundReceived()
Returns true iff this exception is caused by an empty inbound container file

Returns:
true iff this exception is caused by an empty inbound container file


Copyright © 2003 SAP AG. All Rights Reserved.