CAF SAP NetWeaver CE 7.1

com.sap.caf.rt.exception
Class CAFBaseException

java.lang.Object
  extended by BaseException
      extended by com.sap.caf.rt.exception.CAFBaseException
Direct Known Subclasses:
CAFDataAccessException, CAFExtExecException, CAFServiceException

public class CAFBaseException
extends BaseException

This is the superclass of all checked CAF exceptions.


Constructor Summary
CAFBaseException()
          Deprecated. Use CAFBaseException(Location) instead.
CAFBaseException(BaseExceptionInfo baseExcInfo)
          Constructs a new CAFBaseException.
CAFBaseException(BaseExceptionInfo baseExcInfo, boolean isRealCause)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, LocalizableText localizableText, java.lang.Throwable cause)
          Deprecated.  
CAFBaseException(com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, LocalizableText localizableText, java.lang.Throwable cause, boolean isRealCause)
          Deprecated.  
CAFBaseException(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.  
CAFBaseException(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.  
CAFBaseException(LocalizableText localizableText)
          Deprecated. Use CAFBaseException(Location, LocalizableText) instead.
CAFBaseException(LocalizableTextFormatter textFormatter)
          Deprecated. Use CAFBaseException(Location, LocalizableText) instead.
CAFBaseException(LocalizableTextFormatter textFormatter, java.lang.Throwable cause)
          Deprecated. Use CAFBaseException(Location, LocalizableText, Throwable) instead.
CAFBaseException(LocalizableTextFormatter textFormatter, java.lang.Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseException(Location, LocalizableText, Throwable, boolean) instead.
CAFBaseException(LocalizableText localizableText, java.lang.Throwable cause)
          Deprecated. Use CAFBaseException(Location, LocalizableText, Throwable) instead.
CAFBaseException(LocalizableText localizableText, java.lang.Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseException(Location, LocalizableText, Throwable, boolean) instead.
CAFBaseException(com.sap.tc.logging.Location location)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, LocalizableText localizableText)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, LocalizableText localizableText, java.lang.Throwable cause)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, LocalizableText localizableText, java.lang.Throwable cause, boolean isRealCause)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, ResourceAccessor ra, Msg msg)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, ResourceAccessor ra, Msg msg, java.lang.Throwable cause)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, ResourceAccessor ra, Msg msg, java.lang.Throwable cause, boolean isRealCause)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key, java.lang.Object[] args)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key, java.lang.Object[] args, java.lang.Throwable cause)
          Constructs a new CAFBaseException.
CAFBaseException(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 CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key, java.lang.Throwable cause)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, ResourceAccessor ra, java.lang.String key, java.lang.Throwable cause, boolean isRealCause)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, java.lang.Throwable cause)
          Constructs a new CAFBaseException.
CAFBaseException(com.sap.tc.logging.Location location, java.lang.Throwable cause, boolean isRealCause)
          Constructs a new CAFBaseException.
CAFBaseException(ResourceAccessor ra, Msg msg)
          Deprecated. Use CAFBaseException(Location, ResourceAccessor, Msg) instead.
CAFBaseException(ResourceAccessor ra, Msg msg, java.lang.Throwable cause)
          Deprecated. Use CAFBaseException(Location, ResourceAccessor, Msg, Throwable) instead.
CAFBaseException(ResourceAccessor ra, Msg msg, java.lang.Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseException(Location, ResourceAccessor, Msg, Throwable, boolean) instead.
CAFBaseException(ResourceAccessor ra, java.lang.String key)
          Deprecated. Use CAFBaseException(Location, ResourceAccessor, String) instead.
CAFBaseException(ResourceAccessor ra, java.lang.String key, java.lang.Object[] args)
          Deprecated. Use CAFBaseException(Location, ResourceAccessor, String, Object[]) instead.
CAFBaseException(ResourceAccessor ra, java.lang.String key, java.lang.Object[] args, java.lang.Throwable cause)
          Deprecated. Use CAFBaseException(Location, ResourceAccessor, String, Object[], Throwable) instead.
CAFBaseException(ResourceAccessor ra, java.lang.String key, java.lang.Object[] args, java.lang.Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseException(Location, ResourceAccessor, String, Object[], Throwable, boolean) instead.
CAFBaseException(ResourceAccessor ra, java.lang.String key, java.lang.Throwable cause)
          Deprecated. Use CAFBaseException(Location, ResourceAccessor, String, Throwable) instead.
CAFBaseException(ResourceAccessor ra, java.lang.String key, java.lang.Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseException(Location, ResourceAccessor, String, Throwable, boolean) instead.
 
Method Summary
 java.lang.String getLocalizedMessage()
          Returns the localized message of the real cause.
 java.lang.String getLocalizedMessage(java.util.Locale locale)
          Returns the localized message of the real cause.
 java.lang.String getLocalizedMessage(java.util.Locale locale, java.util.TimeZone timeZone)
          Returns the localized message of the real cause.
 java.lang.String getLocalizedMessage(java.util.TimeZone timeZone)
          Returns the localized message of the real cause.
 java.lang.String getMessage()
          Returns the message of the real cause.
 java.lang.Throwable getRealCause()
          Returns the real cause of this exception.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location)
Constructs a new CAFBaseException.

Parameters:
location - logging location

CAFBaseException

public CAFBaseException()
Deprecated. Use CAFBaseException(Location) instead.

Constructs a new CAFBaseException.


CAFBaseException

public CAFBaseException(BaseExceptionInfo baseExcInfo)
Constructs a new CAFBaseException.

Parameters:
baseExcInfo - information about the throwable which caused this exception

CAFBaseException

public CAFBaseException(BaseExceptionInfo baseExcInfo,
                        boolean isRealCause)
Constructs a new CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        java.lang.Throwable cause)
Constructs a new CAFBaseException.

Parameters:
location - logging location
cause - the throwable which caused this exception

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        java.lang.Throwable cause,
                        boolean isRealCause)
Constructs a new CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        ResourceAccessor ra,
                        java.lang.String key)
Constructs a new CAFBaseException.

Parameters:
location - logging location
ra - resource accessor
key - the key of the message in the resource bundle

CAFBaseException

public CAFBaseException(ResourceAccessor ra,
                        java.lang.String key)
Deprecated. Use CAFBaseException(Location, ResourceAccessor, String) instead.

Constructs a new CAFBaseException.

Parameters:
ra - resource accessor
key - the key of the message in the resource bundle

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        ResourceAccessor ra,
                        java.lang.String key,
                        java.lang.Throwable cause)
Constructs a new CAFBaseException.

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

CAFBaseException

public CAFBaseException(ResourceAccessor ra,
                        java.lang.String key,
                        java.lang.Throwable cause)
Deprecated. Use CAFBaseException(Location, ResourceAccessor, String, Throwable) instead.

Constructs a new CAFBaseException.

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

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        ResourceAccessor ra,
                        java.lang.String key,
                        java.lang.Throwable cause,
                        boolean isRealCause)
Constructs a new CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(ResourceAccessor ra,
                        java.lang.String key,
                        java.lang.Throwable cause,
                        boolean isRealCause)
Deprecated. Use CAFBaseException(Location, ResourceAccessor, String, Throwable, boolean) instead.

Constructs a new CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        ResourceAccessor ra,
                        java.lang.String key,
                        java.lang.Object[] args)
Constructs a new CAFBaseException.

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

CAFBaseException

public CAFBaseException(ResourceAccessor ra,
                        java.lang.String key,
                        java.lang.Object[] args)
Deprecated. Use CAFBaseException(Location, ResourceAccessor, String, Object[]) instead.

Constructs a new CAFBaseException.

Parameters:
ra - resource accessor
key - the key of the message in the resource bundle
args - arguments for the message

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        ResourceAccessor ra,
                        java.lang.String key,
                        java.lang.Object[] args,
                        java.lang.Throwable cause)
Constructs a new CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(ResourceAccessor ra,
                        java.lang.String key,
                        java.lang.Object[] args,
                        java.lang.Throwable cause)
Deprecated. Use CAFBaseException(Location, ResourceAccessor, String, Object[], Throwable) instead.

Constructs a new CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(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 CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(ResourceAccessor ra,
                        java.lang.String key,
                        java.lang.Object[] args,
                        java.lang.Throwable cause,
                        boolean isRealCause)
Deprecated. Use CAFBaseException(Location, ResourceAccessor, String, Object[], Throwable, boolean) instead.

Constructs a new CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        ResourceAccessor ra,
                        Msg msg)
Constructs a new CAFBaseException.

Parameters:
location - logging location
ra - resource accessor
msg - message from a resource bundle

CAFBaseException

public CAFBaseException(ResourceAccessor ra,
                        Msg msg)
Deprecated. Use CAFBaseException(Location, ResourceAccessor, Msg) instead.

Constructs a new CAFBaseException.

Parameters:
ra - resource accessor
msg - message from a resource bundle

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        ResourceAccessor ra,
                        Msg msg,
                        java.lang.Throwable cause)
Constructs a new CAFBaseException.

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

CAFBaseException

public CAFBaseException(ResourceAccessor ra,
                        Msg msg,
                        java.lang.Throwable cause)
Deprecated. Use CAFBaseException(Location, ResourceAccessor, Msg, Throwable) instead.

Constructs a new CAFBaseException.

Parameters:
ra - resource accessor
msg - message from a resource bundle
cause - the throwable which caused this exception

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        ResourceAccessor ra,
                        Msg msg,
                        java.lang.Throwable cause,
                        boolean isRealCause)
Constructs a new CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(ResourceAccessor ra,
                        Msg msg,
                        java.lang.Throwable cause,
                        boolean isRealCause)
Deprecated. Use CAFBaseException(Location, ResourceAccessor, Msg, Throwable, boolean) instead.

Constructs a new CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        LocalizableText localizableText)
Constructs a new CAFBaseException.

Parameters:
location - logging location
localizableText - localizable message

CAFBaseException

public CAFBaseException(LocalizableText localizableText)
Deprecated. Use CAFBaseException(Location, LocalizableText) instead.

Constructs a new CAFBaseException.

Parameters:
localizableText - localizable message

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        LocalizableText localizableText,
                        java.lang.Throwable cause)
Constructs a new CAFBaseException.

Parameters:
location - logging location
localizableText - localizable message
cause - the throwable which caused this exception

CAFBaseException

public CAFBaseException(LocalizableText localizableText,
                        java.lang.Throwable cause)
Deprecated. Use CAFBaseException(Location, LocalizableText, Throwable) instead.

Constructs a new CAFBaseException.

Parameters:
localizableText - localizable message
cause - the throwable which caused this exception

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Location location,
                        LocalizableText localizableText,
                        java.lang.Throwable cause,
                        boolean isRealCause)
Constructs a new CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(LocalizableText localizableText,
                        java.lang.Throwable cause,
                        boolean isRealCause)
Deprecated. Use CAFBaseException(Location, LocalizableText, Throwable, boolean) instead.

Constructs a new CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(com.sap.tc.logging.Category category,
                        int severity,
                        com.sap.tc.logging.Location location,
                        LocalizableText localizableText,
                        java.lang.Throwable cause)
Deprecated. 

Constructs a new CAFBaseException.

Parameters:
category - logging category
severity - logging severity
location - logging location
localizableText - localizable message
cause - the throwable which caused this exception

CAFBaseException

public CAFBaseException(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 CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(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 CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(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 CAFBaseException.

Parameters:
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

CAFBaseException

public CAFBaseException(LocalizableTextFormatter textFormatter)
Deprecated. Use CAFBaseException(Location, LocalizableText) instead.

Constructs a new CAFBaseException.

Parameters:
textFormatter - localizable message

CAFBaseException

public CAFBaseException(LocalizableTextFormatter textFormatter,
                        java.lang.Throwable cause)
Deprecated. Use CAFBaseException(Location, LocalizableText, Throwable) instead.

Constructs a new CAFBaseException.

Parameters:
textFormatter - localizable message
cause - the throwable which caused this exception

CAFBaseException

public CAFBaseException(LocalizableTextFormatter textFormatter,
                        java.lang.Throwable cause,
                        boolean isRealCause)
Deprecated. Use CAFBaseException(Location, LocalizableText, Throwable, boolean) instead.

Constructs a new CAFBaseException.

Parameters:
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

getRealCause

public java.lang.Throwable getRealCause()
Returns the real cause of this exception. This method traverses through the nested exceptions to find the original exception.

Returns:
the real cause of this exception

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Returns the localized message of the real cause.

Returns:
localized message string

getMessage

public java.lang.String getMessage()
Returns the message of the real cause.

Returns:
message string

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale locale,
                                            java.util.TimeZone timeZone)
Returns the localized message of the real cause.

Parameters:
locale - locale to use for formatting
timeZone - time zone to use for formatting
Returns:
localized message string

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale locale)
Returns the localized message of the real cause.

Parameters:
locale - locale to use for formatting
Returns:
localized message string

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.TimeZone timeZone)
Returns the localized message of the real cause.

Parameters:
timeZone - time zone to use for formatting
Returns:
localized message string

CAF SAP NetWeaver CE 7.1