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 CORRUPTED_INBOUND
          Message in case of inbound file does not contain the expected data or the inbound file is truncated.
static java.lang.String RECEIVED_EMPTY_INBOUND
          Message in case of receiving empty inbound container file.
static java.lang.String RECEIVED_OLD_DATA
          Message in case of receiving 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 (prolog does not contain execution time).
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
static java.lang.String UNREGISTERED_METHOD
          Message in case of receiving a container for a method that is not registered.
static java.lang.String WRONG_INBOUND_FORMAT
          Message in case of the format of the inbound file is not supported.
 
Constructor Summary
SyncException(java.lang.String reason)
          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 (prolog does not contain execution time).

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
Message in case of receiving old inbound data

See Also:
Constant Field Values

RECEIVED_EMPTY_INBOUND

public static final java.lang.String RECEIVED_EMPTY_INBOUND
Message in case of receiving empty inbound container file. Maybe MI Sync Servlet system properties are not maintained or wrong user / password data has been used or short dump in ABAP occurred.

See Also:
Constant Field Values

CORRUPTED_INBOUND

public static final java.lang.String CORRUPTED_INBOUND
Message in case of inbound file does not contain the expected data or the inbound file is truncated.

See Also:
Constant Field Values

WRONG_INBOUND_FORMAT

public static final java.lang.String WRONG_INBOUND_FORMAT
Message in case of the format of the inbound file is not supported.

See Also:
Constant Field Values

UNREGISTERED_METHOD

public static final java.lang.String UNREGISTERED_METHOD
Message in case of receiving a container for a method that is not registered.

See Also:
Constant Field Values
Constructor Detail

SyncException

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

Parameters:
reason - Description of the Parameter
Method Detail

isOldDataReceived

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

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 © 2005 SAP AG. All Rights Reserved.