com.sap.mw.jco
Class JCO.AbapException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.sap.mw.jco.JCO.Exception
                          |
                          +--com.sap.mw.jco.JCO.AbapException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
JCO

public static class JCO.AbapException
extends JCO.Exception

A convenience class on top of JCO.Exception that reports errors which occurred in a SAP system function module

See Also:
Serialized Form

Fields inherited from class com.sap.mw.jco.JCO.Exception
JCO_ERROR_ABAP_EXCEPTION, JCO_ERROR_APPLICATION_EXCEPTION, JCO_ERROR_CANCELLED, JCO_ERROR_COMMUNICATION, JCO_ERROR_CONVERSION, JCO_ERROR_FIELD_NOT_FOUND, JCO_ERROR_FUNCTION_NOT_FOUND, JCO_ERROR_ILLEGAL_ARGUMENT, JCO_ERROR_ILLEGAL_TID, JCO_ERROR_INTERNAL, JCO_ERROR_LOGON_FAILURE, JCO_ERROR_NOT_SUPPORTED, JCO_ERROR_NULL_HANDLE, JCO_ERROR_PROGRAM, JCO_ERROR_PROTOCOL, JCO_ERROR_RESOURCE, JCO_ERROR_SERVER_STARTUP, JCO_ERROR_STATE_BUSY, JCO_ERROR_SYSTEM_FAILURE, JCO_ERROR_UNSUPPORTED_CODEPAGE, JCO_ERROR_XML_PARSER
 
Constructor Summary
JCO.AbapException(java.lang.String key)
          Creates an exception with the specified key.
JCO.AbapException(java.lang.String key, java.lang.String message)
          Creates an exception
 
Methods inherited from class com.sap.mw.jco.JCO.Exception
getGroup, getKey, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JCO.AbapException

public JCO.AbapException(java.lang.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 exception. If however the specified key is not a defined exception for the currently processed function module the SAP will raise a system exception.
Parameters:
key - the key for the exception as specified in the function interface

JCO.AbapException

public JCO.AbapException(java.lang.String key,
                         java.lang.String message)
Creates an exception
Parameters:
key - the key for the exception
message - a message text