CAF SAP NetWeaver CE 7.1

com.sap.caf.rt.connectivity.exception
Class CAFBAPIExecException

java.lang.Object
  extended by 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

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.


Nested Class Summary
static class CAFBAPIExecException.BAPIErrorMessageDescription
          This is the type of the error messages of a BAPI exception.
 
Field Summary
static java.lang.String TYPE_A
          Abort type.
static java.lang.String TYPE_E
          Error type.
 
Fields inherited from class com.sap.caf.rt.connectivity.exception.CAFExtExecException
TYPE_RFC, TYPE_WS
 
Constructor Summary
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, BaseExceptionInfo baseExcInfo)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, 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, LocalizableText localizableText, java.lang.Throwable cause)
          Deprecated.  
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, LocalizableText localizableText, java.lang.Throwable cause, boolean isRealCause)
          Deprecated.  
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key, java.lang.Object[] args, java.lang.Throwable cause)
          Deprecated.  
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key, java.lang.Object[] args, java.lang.Throwable cause, boolean isRealCause)
          Deprecated.  
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, LocalizableText localizableText)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, LocalizableTextFormatter textFormatter)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, LocalizableTextFormatter textFormatter, java.lang.Throwable cause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText, Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, LocalizableTextFormatter textFormatter, java.lang.Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText, Throwable, boolean) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, LocalizableText localizableText, java.lang.Throwable cause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, LocalizableText, Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, LocalizableText localizableText, java.lang.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, LocalizableText localizableText)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, LocalizableText localizableText, java.lang.Throwable cause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, LocalizableText localizableText, java.lang.Throwable cause, boolean isRealCause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, ResourceAccessor ra, Msg msg)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, ResourceAccessor ra, Msg msg, java.lang.Throwable cause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, ResourceAccessor ra, Msg msg, java.lang.Throwable cause, boolean isRealCause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key, java.lang.Object[] args)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key, java.lang.Object[] args, java.lang.Throwable cause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key, java.lang.Object[] args, java.lang.Throwable cause, boolean isRealCause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key, java.lang.Throwable cause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key, java.lang.Throwable cause, boolean isRealCause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, java.lang.Throwable cause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, com.sap.tc.logging.Location location, java.lang.Throwable cause, boolean isRealCause)
          Constructs a new CAFBAPIExecException.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, ResourceAccessor ra, Msg msg)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, Msg) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, ResourceAccessor ra, Msg msg, java.lang.Throwable cause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, Msg, Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, ResourceAccessor ra, Msg msg, java.lang.Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, Msg, Throwable, boolean) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, ResourceAccessor ra, java.lang.String key)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, ResourceAccessor ra, java.lang.String key, java.lang.Object[] args)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Object[]) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, ResourceAccessor ra, java.lang.String key, java.lang.Object[] args, java.lang.Throwable cause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Object[], Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, ResourceAccessor ra, java.lang.String key, java.lang.Object[] args, java.lang.Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Object[], Throwable, boolean) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, ResourceAccessor ra, java.lang.String key, java.lang.Throwable cause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, Throwable) instead.
CAFBAPIExecException(CAFBAPIExecException.BAPIErrorMessageDescription bapiErr, ResourceAccessor ra, java.lang.String key, java.lang.Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBAPIExecException(BAPIErrorMessageDescription, Location, ResourceAccessor, String, 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.
 java.lang.String getLocalizedMessage()
          Returns the localized message of this BAPI exception.
 java.lang.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
getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getRealCause
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_E

public static final java.lang.String TYPE_E
Error type.

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

TYPE_A

public static final java.lang.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,
                            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,
                            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,
                            java.lang.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,
                            com.sap.tc.logging.Location location,
                            java.lang.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,
                            com.sap.tc.logging.Location location,
                            ResourceAccessor ra,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.String key,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.String key,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.String key,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.String key,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.String key,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.String key,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.String key,
                            java.lang.Object[] args,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.String key,
                            java.lang.Object[] args,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.String key,
                            java.lang.Object[] args,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.String key,
                            java.lang.Object[] args,
                            java.lang.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,
                            ResourceAccessor ra,
                            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,
                            ResourceAccessor ra,
                            Msg msg)
Deprecated. Use 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,
                            ResourceAccessor ra,
                            Msg msg,
                            java.lang.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,
                            ResourceAccessor ra,
                            Msg msg,
                            java.lang.Throwable cause)
Deprecated. Use 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,
                            ResourceAccessor ra,
                            Msg msg,
                            java.lang.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,
                            ResourceAccessor ra,
                            Msg msg,
                            java.lang.Throwable cause,
                            boolean isRealCause)
Deprecated. Use 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,
                            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,
                            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,
                            LocalizableText localizableText,
                            java.lang.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,
                            LocalizableText localizableText,
                            java.lang.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,
                            LocalizableText localizableText,
                            java.lang.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,
                            LocalizableText localizableText,
                            java.lang.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,
                            LocalizableText localizableText,
                            java.lang.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,
                            LocalizableText localizableText,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.String key,
                            java.lang.Object[] args,
                            java.lang.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,
                            ResourceAccessor ra,
                            java.lang.String key,
                            java.lang.Object[] args,
                            java.lang.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,
                            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,
                            LocalizableTextFormatter textFormatter,
                            java.lang.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,
                            LocalizableTextFormatter textFormatter,
                            java.lang.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
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 java.lang.String getMessage()
Returns the localized message of this BAPI exception.

Overrides:
getMessage in class CAFBaseException
Returns:
message string

getLocalizedMessage

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

Overrides:
getLocalizedMessage in class CAFBaseException
Returns:
message string

CAF SAP NetWeaver CE 7.1