Class AbapException

All Implemented Interfaces:
Serializable

public class AbapException extends JCoException
A convenience class on top of JCoException that reports exceptions, which occurred in an SAP system, while processing a function module. Server functionality for JCo implementing a function module in Java could also define such exceptions in their interface, and hence throw such an exception.
See Also:
  • Constructor Details

    • AbapException

      public AbapException(String key)
      Creates an exception with the specified key. This constructor is normally used in the server's handleRequest() methods to throw an exception which is part of the function interface definition. In such a case the SAP system will not raise a system failure. If however the specified key is not a defined exception for the currently processed function module the SAP will raise a system failure.
      Parameters:
      key - the key for the exception as specified in the function interface
    • AbapException

      public AbapException(String key, String message)
      Creates an exception with the specified key and the given message text.
      Parameters:
      key - the key for the exception as specified in the function interface
      message - a message text describing the exception cause
    • AbapException

      public AbapException(String key, String messageClass, char messageType, String messageNumber, String[] messageParameters)
      Creates an instance of the exception object with the specified key and more information for ABAP messages (so-called T100 messages).
      Parameters:
      key - the key for the exception as specified in the function interface
      messageClass - the specified ABAP message class.
      messageType - the specified ABAP message type, e.g. 'A' or 'E'
      messageNumber - the specified ABAP message number
      messageParameters - the specified ABAP message parameters, can be a maximum of 4
    • AbapException

      public AbapException(String key, String message, String messageClass, char messageType, String messageNumber, String[] messageParameters)
      Creates an instance of the exception object with the specified key, the given message text, and more information for ABAP messages (so-called T100 messages).
      Parameters:
      key - the key for the exception as specified in the function interface
      message - a message text describing the exception cause
      messageClass - the specified ABAP message class.
      messageType - the specified ABAP message type, e.g. 'A' or 'E'
      messageNumber - the specified ABAP message number
      messageParameters - the specified ABAP message parameters, can be a maximum of 4
      Since:
      JCo 3.1.7