com.sap.caf.rt.connectivity.exception

Class CAFBAPIExecException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sap.exception.BaseException
              extended by com.sap.caf.rt.exception.CAFBaseException
                  extended by com.sap.caf.rt.connectivity.exception.CAFExtExecException
                      extended by com.sap.caf.rt.connectivity.exception.CAFRFCExecException
                          extended by com.sap.caf.rt.connectivity.exception.CAFBAPIExecException
All Implemented Interfaces:
com.sap.exception.IBaseException, Serializable

public class CAFBAPIExecException
extends CAFRFCExecException

This exception is thrown when a problem with executing a BAPI external service occurs. It contains extra info which is returned by BAPIs.

See Also:
Serialized Form

Nested Class Summary
static class CAFBAPIExecException.BAPIErrorMessageDescription
          This is the type of the error messages of a BAPI exception.
 
Field Summary
static String TYPE_A
          Abort type.
static String TYPE_E
          Error type.
 
Fields inherited from class com.sap.caf.rt.connectivity.exception.CAFExtExecException
TYPE_RFC, TYPE_WS
 
Fields inherited from interface com.sap.exception.IBaseException
audit, defaultLocale
 
Constructor Summary
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.exception.BaseExceptionInfo baseExcInfo)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.exception.BaseExceptionInfo baseExcInfo, boolean isRealCause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, com.sap.localization.LocalizableText localizableText, Throwable cause)
          Deprecated.  
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, com.sap.localization.LocalizableText localizableText, Throwable cause, boolean isRealCause)
          Deprecated.  
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key, Object[] args, Throwable cause)
          Deprecated.  
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key, Object[] args, Throwable cause, boolean isRealCause)
          Deprecated.  
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.LocalizableText localizableText)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.LocalizableTextFormatter textFormatter)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.LocalizableTextFormatter textFormatter, Throwable cause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText, Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.LocalizableTextFormatter textFormatter, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText, Throwable, boolean) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.LocalizableText localizableText, Throwable cause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText, Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.LocalizableText localizableText, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText, Throwable, boolean) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, com.sap.localization.LocalizableText localizableText)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, com.sap.localization.LocalizableText localizableText, Throwable cause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, com.sap.localization.LocalizableText localizableText, Throwable cause, boolean isRealCause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, com.sap.localization.LocalizableText.Msg msg)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, com.sap.localization.LocalizableText.Msg msg, Throwable cause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, com.sap.localization.LocalizableText.Msg msg, Throwable cause, boolean isRealCause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key, Object[] args)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key, Object[] args, Throwable cause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key, Object[] args, Throwable cause, boolean isRealCause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key, Throwable cause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key, Throwable cause, boolean isRealCause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, String key)
          Constructs a new CAFBAPIExecException with the default CAF resource accessor.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, String key, Object[] args)
          Constructs a new CAFBAPIExecException with the default CAF resource accessor.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, String key, Object[] args, Throwable cause)
          Constructs a new CAFBAPIExecException with the default CAF resource accessor.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, String key, Object[] args, Throwable cause, boolean isRealCause)
          Constructs a new CAFBAPIExecException with the default CAF resource accessor.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, String key, Throwable cause)
          Constructs a new CAFBAPIExecException with the default CAF resource accessor.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, String key, Throwable cause, boolean isRealCause)
          Constructs a new CAFBAPIExecException with the default CAF resource accessor.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, Throwable cause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, Throwable cause, boolean isRealCause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.ResourceAccessor ra, com.sap.localization.LocalizableText.Msg msg)
          Deprecated. Use CAFBAPIExecException#CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, Msg) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.ResourceAccessor ra, com.sap.localization.LocalizableText.Msg msg, Throwable cause)
          Deprecated. Use CAFBAPIExecException#CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, Msg, Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.ResourceAccessor ra, com.sap.localization.LocalizableText.Msg msg, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBAPIExecException#CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, Msg, Throwable, boolean) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.ResourceAccessor ra, String key)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.ResourceAccessor ra, String key, Object[] args)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Object[]) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.ResourceAccessor ra, String key, Object[] args, Throwable cause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Object[], Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.ResourceAccessor ra, String key, Object[] args, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Object[], Throwable, boolean) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.ResourceAccessor ra, String key, Throwable cause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.localization.ResourceAccessor ra, String key, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Throwable, boolean) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, String key)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, String) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, String key, Object[] args)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, String, Object[]) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, String key, Object[] args, Throwable cause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, String, Object[], Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, String key, Object[] args, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, String, Object[], Throwable, boolean) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, String key, Throwable cause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, String, Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, String key, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, String, Throwable, boolean) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, Throwable cause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, Throwable, boolean) instead.
 
Method Summary
 void addBAPIErrorMessage(CAFBAPIExecException.BAPIErrorMessageDescription el)
          Adds a new BAPI error message to this exception.
 CAFBAPIExecException.BAPIErrorMessageDescription[] getAllBAPIErrorMessages()
          Returns all the BAPI error messages of this exception.
 String getLocalizedMessage()
          Returns the localized message of this BAPI exception.
 String getMessage()
          Returns the localized message of this BAPI exception.
 
Methods inherited from class com.sap.caf.rt.connectivity.exception.CAFRFCExecException
getType
 
Methods inherited from class com.sap.caf.rt.exception.CAFBaseException
getFaultInfo, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getRealCause, setFaultInfo
 
Methods inherited from class com.sap.exception.BaseException
finallyLocalize, finallyLocalize, finallyLocalize, finallyLocalize, getCause, getLocalizableMessage, getLogCategory, getLogLocation, getLogSeverity, getNestedLocalizedMessage, getNestedLocalizedMessage, getNestedLocalizedMessage, getNestedLocalizedMessage, getNestedStackTraceString, getStackTraceString, getSystemStackTraceString, initCause, log, printStackTrace, printStackTrace, printStackTrace, restoreLogSettings, setLogSettings, trace, trace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_E

public static final String TYPE_E
Error type.

See Also:
CAFBAPIExecException.BAPIErrorMessageDescription.getType(), Constant Field Values

TYPE_A

public static final String TYPE_A
Abort type.

See Also:
CAFBAPIExecException.BAPIErrorMessageDescription.getType(), Constant Field Values
Constructor Detail

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.exception.BaseExceptionInfo baseExcInfo)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
baseExcInfo - information about the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.exception.BaseExceptionInfo baseExcInfo,
                            boolean isRealCause)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
baseExcInfo - information about the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            Throwable cause)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            Throwable cause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, Throwable) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            Throwable cause,
                            boolean isRealCause)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            Throwable cause,
                            boolean isRealCause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, Throwable, boolean) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.ResourceAccessor ra,
                            String key)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
ra - resource accessor
key - the key of the message in the resource bundle

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.ResourceAccessor ra,
                            String key)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
ra - resource accessor
key - the key of the message in the resource bundle

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.ResourceAccessor ra,
                            String key,
                            Throwable cause)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
ra - resource accessor
key - the key of the message in the resource bundle
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.ResourceAccessor ra,
                            String key,
                            Throwable cause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Throwable) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
ra - resource accessor
key - the key of the message in the resource bundle
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.ResourceAccessor ra,
                            String key,
                            Throwable cause,
                            boolean isRealCause)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
ra - resource accessor
key - the key of the message in the resource bundle
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.ResourceAccessor ra,
                            String key,
                            Throwable cause,
                            boolean isRealCause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Throwable, boolean) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
ra - resource accessor
key - the key of the message in the resource bundle
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.ResourceAccessor ra,
                            String key,
                            Object[] args)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
ra - resource accessor
key - the key of the message in the resource bundle
args - arguments for the message

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.ResourceAccessor ra,
                            String key,
                            Object[] args)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Object[]) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
ra - resource accessor
key - the key of the message in the resource bundle
args - arguments for the message

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.ResourceAccessor ra,
                            String key,
                            Object[] args,
                            Throwable cause)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
ra - resource accessor
key - the key of the message in the resource bundle
args - arguments for the message
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.ResourceAccessor ra,
                            String key,
                            Object[] args,
                            Throwable cause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Object[], Throwable) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
ra - resource accessor
key - the key of the message in the resource bundle
args - arguments for the message
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.ResourceAccessor ra,
                            String key,
                            Object[] args,
                            Throwable cause,
                            boolean isRealCause)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
ra - resource accessor
key - the key of the message in the resource bundle
args - arguments for the message
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.ResourceAccessor ra,
                            String key,
                            Object[] args,
                            Throwable cause,
                            boolean isRealCause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Object[], Throwable, boolean) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
ra - resource accessor
key - the key of the message in the resource bundle
args - arguments for the message
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.ResourceAccessor ra,
                            com.sap.localization.LocalizableText.Msg msg)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
ra - resource accessor
msg - message from a resource bundle

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.ResourceAccessor ra,
                            com.sap.localization.LocalizableText.Msg msg)
Deprecated. Use CAFBAPIExecException#CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, Msg) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
ra - resource accessor
msg - message from a resource bundle

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.ResourceAccessor ra,
                            com.sap.localization.LocalizableText.Msg msg,
                            Throwable cause)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
ra - resource accessor
msg - message from a resource bundle
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.ResourceAccessor ra,
                            com.sap.localization.LocalizableText.Msg msg,
                            Throwable cause)
Deprecated. Use CAFBAPIExecException#CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, Msg, Throwable) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
ra - resource accessor
msg - message from a resource bundle
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.ResourceAccessor ra,
                            com.sap.localization.LocalizableText.Msg msg,
                            Throwable cause,
                            boolean isRealCause)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
ra - resource accessor
msg - message from a resource bundle
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.ResourceAccessor ra,
                            com.sap.localization.LocalizableText.Msg msg,
                            Throwable cause,
                            boolean isRealCause)
Deprecated. Use CAFBAPIExecException#CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, Msg, Throwable, boolean) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
ra - resource accessor
msg - message from a resource bundle
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.LocalizableText localizableText)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
localizableText - localizable message

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.LocalizableText localizableText)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
localizableText - localizable message

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.LocalizableText localizableText,
                            Throwable cause)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
localizableText - localizable message
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.LocalizableText localizableText,
                            Throwable cause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText, Throwable) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
localizableText - localizable message
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.LocalizableText localizableText,
                            Throwable cause,
                            boolean isRealCause)
Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
location - logging location
localizableText - localizable message
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.LocalizableText localizableText,
                            Throwable cause,
                            boolean isRealCause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText, Throwable, boolean) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
localizableText - localizable message
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Category category,
                            int severity,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.LocalizableText localizableText,
                            Throwable cause)
Deprecated. 

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
category - logging category
severity - logging severity
location - logging location
localizableText - localizable message
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Category category,
                            int severity,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.LocalizableText localizableText,
                            Throwable cause,
                            boolean isRealCause)
Deprecated. 

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
category - logging category
severity - logging severity
location - logging location
localizableText - localizable message
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Category category,
                            int severity,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.ResourceAccessor ra,
                            String key,
                            Object[] args,
                            Throwable cause)
Deprecated. 

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
category - logging category
severity - logging severity
location - logging location
ra - resource accessor
key - the key of the message in the resource bundle
args - arguments for the message
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Category category,
                            int severity,
                            com.sap.tc.logging.Location location,
                            com.sap.localization.ResourceAccessor ra,
                            String key,
                            Object[] args,
                            Throwable cause,
                            boolean isRealCause)
Deprecated. 

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
category - logging category
severity - logging severity
location - logging location
ra - resource accessor
key - the key of the message in the resource bundle
args - arguments for the message
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.LocalizableTextFormatter textFormatter)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
textFormatter - localizable message

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.LocalizableTextFormatter textFormatter,
                            Throwable cause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText, Throwable) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
textFormatter - localizable message
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.localization.LocalizableTextFormatter textFormatter,
                            Throwable cause,
                            boolean isRealCause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText, Throwable, boolean) instead.

Constructs a new CAFBAPIExecException.

Parameters:
bapiErr - description of the BAPI error
textFormatter - localizable message
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            String key)
Constructs a new CAFBAPIExecException with the default CAF resource accessor.

Parameters:
bapiErr - description of the BAPI error
location - logging location
key - the key of the message in the resource bundle

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            String key)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, String) instead.

Constructs a new CAFBAPIExecException with the default CAF resource accessor.

Parameters:
bapiErr - description of the BAPI error
key - the key of the message in the resource bundle

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            String key,
                            Throwable cause)
Constructs a new CAFBAPIExecException with the default CAF resource accessor.

Parameters:
bapiErr - description of the BAPI error
location - logging location
key - the key of the message in the resource bundle
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            String key,
                            Throwable cause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, String, Throwable) instead.

Constructs a new CAFBAPIExecException with the default CAF resource accessor.

Parameters:
bapiErr - description of the BAPI error
key - the key of the message in the resource bundle
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            String key,
                            Throwable cause,
                            boolean isRealCause)
Constructs a new CAFBAPIExecException with the default CAF resource accessor.

Parameters:
bapiErr - description of the BAPI error
location - logging location
key - the key of the message in the resource bundle
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            String key,
                            Throwable cause,
                            boolean isRealCause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, String, Throwable, boolean) instead.

Constructs a new CAFBAPIExecException with the default CAF resource accessor.

Parameters:
bapiErr - description of the BAPI error
key - the key of the message in the resource bundle
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            String key,
                            Object[] args)
Constructs a new CAFBAPIExecException with the default CAF resource accessor.

Parameters:
bapiErr - description of the BAPI error
location - logging location
key - the key of the message in the resource bundle
args - arguments for the message

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            String key,
                            Object[] args)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, String, Object[]) instead.

Constructs a new CAFBAPIExecException with the default CAF resource accessor.

Parameters:
bapiErr - description of the BAPI error
key - the key of the message in the resource bundle
args - arguments for the message

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            String key,
                            Object[] args,
                            Throwable cause)
Constructs a new CAFBAPIExecException with the default CAF resource accessor.

Parameters:
bapiErr - description of the BAPI error
location - logging location
key - the key of the message in the resource bundle
args - arguments for the message
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            String key,
                            Object[] args,
                            Throwable cause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, String, Object[], Throwable) instead.

Constructs a new CAFBAPIExecException with the default CAF resource accessor.

Parameters:
bapiErr - description of the BAPI error
key - the key of the message in the resource bundle
args - arguments for the message
cause - the throwable which caused this exception

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            com.sap.tc.logging.Location location,
                            String key,
                            Object[] args,
                            Throwable cause,
                            boolean isRealCause)
Constructs a new CAFBAPIExecException with the default CAF resource accessor.

Parameters:
bapiErr - description of the BAPI error
location - logging location
key - the key of the message in the resource bundle
args - arguments for the message
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one

CAFBAPIExecException

public CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr,
                            String key,
                            Object[] args,
                            Throwable cause,
                            boolean isRealCause)
Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, String, Object[], Throwable, boolean) instead.

Constructs a new CAFBAPIExecException with the default CAF resource accessor.

Parameters:
bapiErr - description of the BAPI error
key - the key of the message in the resource bundle
args - arguments for the message
cause - the throwable which caused this exception
isRealCause - true if the currently constructed exception is the real exception and not just a wrapper, false if cause is the real one
Method Detail

getAllBAPIErrorMessages

public CAFBAPIExecException.BAPIErrorMessageDescription[] getAllBAPIErrorMessages()
Returns all the BAPI error messages of this exception.

Returns:
an array containing the BAPI error messages

addBAPIErrorMessage

public void addBAPIErrorMessage(CAFBAPIExecException.BAPIErrorMessageDescription el)
Adds a new BAPI error message to this exception.

Parameters:
el - the new BAPI error message

getMessage

public String getMessage()
Returns the localized message of this BAPI exception.

Overrides:
getMessage in class CAFBaseException
Returns:
message string

getLocalizedMessage

public String getLocalizedMessage()
Returns the localized message of this BAPI exception.

Specified by:
getLocalizedMessage in interface com.sap.exception.IBaseException
Overrides:
getLocalizedMessage in class CAFBaseException
Returns:
message string
Access Rights

This class can be accessed from:


SC DC
[sap.com] CAF [sap.com] caf/runtime/ear


Copyright 2010 SAP AG Complete Copyright Notice