com.sap.caf.rt.exception

Class CAFBaseRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sap.exception.BaseRuntimeException
                  extended by com.sap.caf.rt.exception.CAFBaseRuntimeException
All Implemented Interfaces:
com.sap.exception.IBaseException, Serializable
Direct Known Subclasses:
CAFIllegalStateException, CAFMissingMandatoryValueException, CAFUnsupportedOperationException, CAFValueTooLongException

public class CAFBaseRuntimeException
extends com.sap.exception.BaseRuntimeException

This is the superclass of all unchecked CAF exceptions.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.sap.exception.IBaseException
audit, defaultLocale
 
Constructor Summary
CAFBaseRuntimeException()
          Deprecated. Use CAFBaseRuntimeException(Location) instead.
CAFBaseRuntimeException(com.sap.exception.BaseExceptionInfo baseExcInfo)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.exception.BaseExceptionInfo baseExcInfo, boolean isRealCause)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, com.sap.localization.LocalizableText localizableText, Throwable cause)
          Deprecated.  
CAFBaseRuntimeException(com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, com.sap.localization.LocalizableText localizableText, Throwable cause, boolean isRealCause)
          Deprecated.  
CAFBaseRuntimeException(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.  
CAFBaseRuntimeException(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.  
CAFBaseRuntimeException(com.sap.localization.LocalizableText localizableText)
          Deprecated. Use CAFBaseRuntimeException(Location, LocalizableText) instead.
CAFBaseRuntimeException(com.sap.localization.LocalizableTextFormatter textFormatter)
          Deprecated. Use CAFBaseRuntimeException(Location, LocalizableText) instead.
CAFBaseRuntimeException(com.sap.localization.LocalizableTextFormatter textFormatter, Throwable cause)
          Deprecated. Use CAFBaseRuntimeException(Location, LocalizableText, Throwable) instead.
CAFBaseRuntimeException(com.sap.localization.LocalizableTextFormatter textFormatter, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseRuntimeException(Location, LocalizableText, Throwable, boolean) instead.
CAFBaseRuntimeException(com.sap.localization.LocalizableText localizableText, Throwable cause)
          Deprecated. Use CAFBaseRuntimeException(Location, LocalizableText, Throwable) instead.
CAFBaseRuntimeException(com.sap.localization.LocalizableText localizableText, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseRuntimeException(Location, LocalizableText, Throwable, boolean) instead.
CAFBaseRuntimeException(com.sap.tc.logging.Location location)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, com.sap.localization.LocalizableText localizableText)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, com.sap.localization.LocalizableText localizableText, Throwable cause)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, com.sap.localization.LocalizableText localizableText, Throwable cause, boolean isRealCause)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, com.sap.localization.LocalizableText.Msg msg)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, com.sap.localization.LocalizableText.Msg msg, Throwable cause)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, com.sap.localization.LocalizableText.Msg msg, Throwable cause, boolean isRealCause)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key, Object[] args)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key, Object[] args, Throwable cause)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key, Object[] args, Throwable cause, boolean isRealCause)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key, Throwable cause)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, com.sap.localization.ResourceAccessor ra, String key, Throwable cause, boolean isRealCause)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, String key)
          Constructs a new CAFBaseRuntimeException with the default CAF resource accessor.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, String key, Object[] args)
          Constructs a new CAFBaseRuntimeException with the default CAF resource accessor.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, String key, Object[] args, Throwable cause)
          Constructs a new CAFBaseRuntimeException with the default CAF resource accessor.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, String key, Object[] args, Throwable cause, boolean isRealCause)
          Constructs a new CAFBaseRuntimeException with the default CAF resource accessor.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, String key, Throwable cause)
          Constructs a new CAFBaseRuntimeException with the default CAF resource accessor.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, String key, Throwable cause, boolean isRealCause)
          Constructs a new CAFBaseRuntimeException with the default CAF resource accessor.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, Throwable cause)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.tc.logging.Location location, Throwable cause, boolean isRealCause)
          Constructs a new CAFBaseRuntimeException.
CAFBaseRuntimeException(com.sap.localization.ResourceAccessor ra, com.sap.localization.LocalizableText.Msg msg)
          Deprecated. Use CAFBaseRuntimeException#CAFBaseRuntimeException(Location, ResourceAccessor, Msg) instead.
CAFBaseRuntimeException(com.sap.localization.ResourceAccessor ra, com.sap.localization.LocalizableText.Msg msg, Throwable cause)
          Deprecated. Use CAFBaseRuntimeException#CAFBaseRuntimeException(Location, ResourceAccessor, Msg, Throwable) instead.
CAFBaseRuntimeException(com.sap.localization.ResourceAccessor ra, com.sap.localization.LocalizableText.Msg msg, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseRuntimeException#CAFBaseRuntimeException(Location, ResourceAccessor, Msg, Throwable, boolean) instead.
CAFBaseRuntimeException(com.sap.localization.ResourceAccessor ra, String key)
          Deprecated. Use CAFBaseRuntimeException(Location, ResourceAccessor, String) instead.
CAFBaseRuntimeException(com.sap.localization.ResourceAccessor ra, String key, Object[] args)
          Deprecated. Use CAFBaseRuntimeException(Location, ResourceAccessor, String, Object[]) instead.
CAFBaseRuntimeException(com.sap.localization.ResourceAccessor ra, String key, Object[] args, Throwable cause)
          Deprecated. Use CAFBaseRuntimeException(Location, ResourceAccessor, String, Object[], Throwable) instead.
CAFBaseRuntimeException(com.sap.localization.ResourceAccessor ra, String key, Object[] args, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseRuntimeException(Location, ResourceAccessor, String, Object[], Throwable, boolean) instead.
CAFBaseRuntimeException(com.sap.localization.ResourceAccessor ra, String key, Throwable cause)
          Deprecated. Use CAFBaseRuntimeException(Location, ResourceAccessor, String, Throwable) instead.
CAFBaseRuntimeException(com.sap.localization.ResourceAccessor ra, String key, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseRuntimeException(Location, ResourceAccessor, String, Throwable, boolean) instead.
CAFBaseRuntimeException(String key)
          Deprecated. Use CAFBaseRuntimeException(Location, String) instead.
CAFBaseRuntimeException(String key, Object[] args)
          Deprecated. Use CAFBaseRuntimeException(Location, String, Object[]) instead.
CAFBaseRuntimeException(String key, Object[] args, Throwable cause)
          Deprecated. Use CAFBaseRuntimeException(Location, String, Object[], Throwable) instead.
CAFBaseRuntimeException(String key, Object[] args, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseRuntimeException(Location, String, Object[], Throwable, boolean) instead.
CAFBaseRuntimeException(String key, Throwable cause)
          Deprecated. Use CAFBaseRuntimeException(Location, String, Throwable) instead.
CAFBaseRuntimeException(String key, Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseRuntimeException(Location, String, Throwable, boolean) instead.
CAFBaseRuntimeException(Throwable cause)
          Deprecated. Use CAFBaseRuntimeException(Location, Throwable) instead.
CAFBaseRuntimeException(Throwable cause, boolean isRealCause)
          Deprecated. Use CAFBaseRuntimeException(Location, Throwable, boolean) instead.
 
Method Summary
 String getLocalizedMessage()
          Returns the localized message of the real cause.
 String getLocalizedMessage(Locale locale)
          Returns the localized message of the real cause.
 String getLocalizedMessage(Locale locale, TimeZone timeZone)
          Returns the localized message of the real cause.
 String getLocalizedMessage(TimeZone timeZone)
          Returns the localized message of the real cause.
 String getMessage()
          Returns the message of the real cause.
 Throwable getRealCause()
          Returns the real cause of this exception.
 
Methods inherited from class com.sap.exception.BaseRuntimeException
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
 

Constructor Detail

CAFBaseRuntimeException

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

Parameters:
location - logging location

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.


CAFBaseRuntimeException

public CAFBaseRuntimeException(com.sap.exception.BaseExceptionInfo baseExcInfo)
Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

public CAFBaseRuntimeException(com.sap.exception.BaseExceptionInfo baseExcInfo,
                               boolean isRealCause)
Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

public CAFBaseRuntimeException(Throwable cause)
Deprecated. Use CAFBaseRuntimeException(Location, Throwable) instead.

Constructs a new CAFBaseRuntimeException.

Parameters:
cause - the throwable which caused this exception

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

public CAFBaseRuntimeException(Throwable cause,
                               boolean isRealCause)
Deprecated. Use CAFBaseRuntimeException(Location, Throwable, boolean) instead.

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

Parameters:
location - logging location
localizableText - localizable message

CAFBaseRuntimeException

public CAFBaseRuntimeException(com.sap.localization.LocalizableText localizableText)
Deprecated. Use CAFBaseRuntimeException(Location, LocalizableText) instead.

Constructs a new CAFBaseRuntimeException.

Parameters:
localizableText - localizable message

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

public CAFBaseRuntimeException(com.sap.localization.LocalizableTextFormatter textFormatter)
Deprecated. Use CAFBaseRuntimeException(Location, LocalizableText) instead.

Constructs a new CAFBaseRuntimeException.

Parameters:
textFormatter - localizable message

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

public CAFBaseRuntimeException(String key)
Deprecated. Use CAFBaseRuntimeException(Location, String) instead.

Constructs a new CAFBaseRuntimeException with the default CAF resource accessor.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

public CAFBaseRuntimeException(String key,
                               Throwable cause)
Deprecated. Use CAFBaseRuntimeException(Location, String, Throwable) instead.

Constructs a new CAFBaseRuntimeException with the default CAF resource accessor.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

public CAFBaseRuntimeException(String key,
                               Throwable cause,
                               boolean isRealCause)
Deprecated. Use CAFBaseRuntimeException(Location, String, Throwable, boolean) instead.

Constructs a new CAFBaseRuntimeException with the default CAF resource accessor.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

public CAFBaseRuntimeException(String key,
                               Object[] args)
Deprecated. Use CAFBaseRuntimeException(Location, String, Object[]) instead.

Constructs a new CAFBaseRuntimeException with the default CAF resource accessor.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException with the default CAF resource accessor.

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

CAFBaseRuntimeException

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

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

CAFBaseRuntimeException

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

Constructs a new CAFBaseRuntimeException with the default CAF resource accessor.

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

getRealCause

public 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 String getLocalizedMessage()
Returns the localized message of the real cause.

Specified by:
getLocalizedMessage in interface com.sap.exception.IBaseException
Overrides:
getLocalizedMessage in class com.sap.exception.BaseRuntimeException
Returns:
localized message string

getMessage

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

Overrides:
getMessage in class com.sap.exception.BaseRuntimeException
Returns:
message string

getLocalizedMessage

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

Specified by:
getLocalizedMessage in interface com.sap.exception.IBaseException
Overrides:
getLocalizedMessage in class com.sap.exception.BaseRuntimeException
Parameters:
locale - locale to use for formatting
timeZone - time zone to use for formatting
Returns:
localized message string

getLocalizedMessage

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

Specified by:
getLocalizedMessage in interface com.sap.exception.IBaseException
Overrides:
getLocalizedMessage in class com.sap.exception.BaseRuntimeException
Parameters:
locale - locale to use for formatting
Returns:
localized message string

getLocalizedMessage

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

Specified by:
getLocalizedMessage in interface com.sap.exception.IBaseException
Overrides:
getLocalizedMessage in class com.sap.exception.BaseRuntimeException
Parameters:
timeZone - time zone to use for formatting
Returns:
localized 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