com.sap.netweaver.bc.rf.util.exception

Class BaseRuntimeException

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.netweaver.bc.rf.util.exception.BaseRuntimeException
All Implemented Interfaces:
com.sap.exception.IBaseException, Serializable

public class BaseRuntimeException
extends com.sap.exception.BaseRuntimeException

Class implementing a unchecked base exception deriving from the exception framework unchecked base exception, but wrapping it due to the bad localization implementation and bad name scheme in that localization package and the fact that the package seems to be totally misnamed as com.sap.localization being just a localization package for the exception framework and due to the mandatory usage of localized messages for all kind of exceptions. This class also allows to contain messages not necesssarily being localized in order to support easy exception creation.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.sap.exception.IBaseException
audit, defaultLocale
 
Constructor Summary
  BaseRuntimeException()
          Construct object of class BaseRuntimeException.
  BaseRuntimeException(boolean logExceptionOnCreation)
          Construct object of class BaseRuntimeException.
protected BaseRuntimeException(ResourceAccessor resourceAccessor, String key)
          Construct object of class BaseRuntimeException.
protected BaseRuntimeException(ResourceAccessor resourceAccessor, String key, boolean logExceptionOnCreation)
          Construct object of class BaseRuntimeException.
protected BaseRuntimeException(ResourceAccessor resourceAccessor, String key, Object[] args)
          Construct object of class BaseRuntimeException.
protected BaseRuntimeException(ResourceAccessor resourceAccessor, String key, Object[] args, boolean logExceptionOnCreation)
          Construct object of class BaseRuntimeException.
protected BaseRuntimeException(ResourceAccessor resourceAccessor, String key, Object[] args, Throwable rootCause)
          Construct object of class BaseRuntimeException.
protected BaseRuntimeException(ResourceAccessor resourceAccessor, String key, Object[] args, Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class BaseRuntimeException.
protected BaseRuntimeException(ResourceAccessor resourceAccessor, String key, Throwable rootCause)
          Construct object of class BaseRuntimeException.
protected BaseRuntimeException(ResourceAccessor resourceAccessor, String key, Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class BaseRuntimeException.
protected BaseRuntimeException(ResourceMessage message)
          Construct object of class BaseRuntimeException.
protected BaseRuntimeException(ResourceMessage message, boolean logExceptionOnCreation)
          Construct object of class BaseRuntimeException.
protected BaseRuntimeException(ResourceMessage message, Throwable rootCause)
          Construct object of class BaseRuntimeException.
protected BaseRuntimeException(ResourceMessage message, Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class BaseRuntimeException.
  BaseRuntimeException(String message)
          Construct object of class BaseRuntimeException.
  BaseRuntimeException(String message, boolean logExceptionOnCreation)
          Construct object of class BaseRuntimeException.
  BaseRuntimeException(String message, Object[] args)
          Construct object of class BaseRuntimeException.
  BaseRuntimeException(String message, Object[] args, boolean logExceptionOnCreation)
          Construct object of class BaseRuntimeException.
  BaseRuntimeException(String message, Object[] args, Throwable rootCause)
          Construct object of class BaseRuntimeException.
  BaseRuntimeException(String message, Object[] args, Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class BaseRuntimeException.
  BaseRuntimeException(String message, Throwable rootCause)
          Construct object of class BaseRuntimeException.
  BaseRuntimeException(String message, Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class BaseRuntimeException.
  BaseRuntimeException(Throwable rootCause)
          Construct object of class BaseRuntimeException.
  BaseRuntimeException(Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class BaseRuntimeException.
 
Method Summary
 
Methods inherited from class com.sap.exception.BaseRuntimeException
finallyLocalize, finallyLocalize, finallyLocalize, finallyLocalize, getCause, getLocalizableMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLogCategory, getLogLocation, getLogSeverity, getMessage, 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

BaseRuntimeException

public BaseRuntimeException()
Construct object of class BaseRuntimeException.


BaseRuntimeException

public BaseRuntimeException(boolean logExceptionOnCreation)
Construct object of class BaseRuntimeException.

Parameters:
logExceptionOnCreation - when true log the exception now during its construction

BaseRuntimeException

public BaseRuntimeException(Throwable rootCause)
Construct object of class BaseRuntimeException.

Parameters:
rootCause - throwable object which caused this exception

BaseRuntimeException

public BaseRuntimeException(Throwable rootCause,
                            boolean logExceptionOnCreation)
Construct object of class BaseRuntimeException.

Parameters:
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

BaseRuntimeException

public BaseRuntimeException(String message)
Construct object of class BaseRuntimeException.

Parameters:
message - not localized message

BaseRuntimeException

public BaseRuntimeException(String message,
                            Object[] args)
Construct object of class BaseRuntimeException.

Parameters:
message - not localized message
args - message arguments inserted by MessageFormat means

BaseRuntimeException

public BaseRuntimeException(String message,
                            Throwable rootCause)
Construct object of class BaseRuntimeException.

Parameters:
message - not localized message
rootCause - throwable object which caused this exception

BaseRuntimeException

public BaseRuntimeException(String message,
                            Object[] args,
                            Throwable rootCause)
Construct object of class BaseRuntimeException.

Parameters:
message - not localized message
args - message arguments inserted by MessageFormat means
rootCause - throwable object which caused this exception

BaseRuntimeException

public BaseRuntimeException(String message,
                            boolean logExceptionOnCreation)
Construct object of class BaseRuntimeException.

Parameters:
message - not localized message
logExceptionOnCreation - when true log the exception now during its construction

BaseRuntimeException

public BaseRuntimeException(String message,
                            Object[] args,
                            boolean logExceptionOnCreation)
Construct object of class BaseRuntimeException.

Parameters:
message - not localized message
args - message arguments inserted by MessageFormat means
logExceptionOnCreation - when true log the exception now during its construction

BaseRuntimeException

public BaseRuntimeException(String message,
                            Throwable rootCause,
                            boolean logExceptionOnCreation)
Construct object of class BaseRuntimeException.

Parameters:
message - not localized message
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

BaseRuntimeException

public BaseRuntimeException(String message,
                            Object[] args,
                            Throwable rootCause,
                            boolean logExceptionOnCreation)
Construct object of class BaseRuntimeException.

Parameters:
message - not localized message
args - message arguments inserted by MessageFormat means
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

BaseRuntimeException

protected BaseRuntimeException(ResourceAccessor resourceAccessor,
                               String key)
Construct object of class BaseRuntimeException.

Parameters:
resourceAccessor - resource accessor
key - resource identifier for localized message

BaseRuntimeException

protected BaseRuntimeException(ResourceAccessor resourceAccessor,
                               String key,
                               Object[] args)
Construct object of class BaseRuntimeException.

Parameters:
resourceAccessor - resource accessor
key - resource identifier for localized message
args - message arguments inserted by MessageFormat means

BaseRuntimeException

protected BaseRuntimeException(ResourceAccessor resourceAccessor,
                               String key,
                               Throwable rootCause)
Construct object of class BaseRuntimeException.

Parameters:
resourceAccessor - resource accessor
key - resource identifier for localized message
rootCause - throwable object which caused this exception

BaseRuntimeException

protected BaseRuntimeException(ResourceAccessor resourceAccessor,
                               String key,
                               Object[] args,
                               Throwable rootCause)
Construct object of class BaseRuntimeException.

Parameters:
resourceAccessor - resource accessor
key - resource identifier for localized message
args - message arguments inserted by MessageFormat means
rootCause - throwable object which caused this exception

BaseRuntimeException

protected BaseRuntimeException(ResourceAccessor resourceAccessor,
                               String key,
                               boolean logExceptionOnCreation)
Construct object of class BaseRuntimeException.

Parameters:
resourceAccessor - resource accessor
key - resource identifier for localized message
logExceptionOnCreation - when true log the exception now during its construction

BaseRuntimeException

protected BaseRuntimeException(ResourceAccessor resourceAccessor,
                               String key,
                               Object[] args,
                               boolean logExceptionOnCreation)
Construct object of class BaseRuntimeException.

Parameters:
resourceAccessor - resource accessor
key - resource identifier for localized message
args - message arguments inserted by MessageFormat means
logExceptionOnCreation - when true log the exception now during its construction

BaseRuntimeException

protected BaseRuntimeException(ResourceAccessor resourceAccessor,
                               String key,
                               Throwable rootCause,
                               boolean logExceptionOnCreation)
Construct object of class BaseRuntimeException.

Parameters:
resourceAccessor - resource accessor
key - resource identifier for localized message
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

BaseRuntimeException

protected BaseRuntimeException(ResourceAccessor resourceAccessor,
                               String key,
                               Object[] args,
                               Throwable rootCause,
                               boolean logExceptionOnCreation)
Construct object of class BaseRuntimeException.

Parameters:
resourceAccessor - resource accessor
key - resource identifier for localized message
args - message arguments inserted by MessageFormat means
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

BaseRuntimeException

protected BaseRuntimeException(ResourceMessage message)
Construct object of class BaseRuntimeException.

Parameters:
message - not localized message

BaseRuntimeException

protected BaseRuntimeException(ResourceMessage message,
                               Throwable rootCause)
Construct object of class BaseRuntimeException.

Parameters:
message - not localized message
rootCause - throwable object which caused this exception

BaseRuntimeException

protected BaseRuntimeException(ResourceMessage message,
                               boolean logExceptionOnCreation)
Construct object of class BaseRuntimeException.

Parameters:
message - not localized message
logExceptionOnCreation - when true log the exception now during its construction

BaseRuntimeException

protected BaseRuntimeException(ResourceMessage message,
                               Throwable rootCause,
                               boolean logExceptionOnCreation)
Construct object of class BaseRuntimeException.

Parameters:
message - not localized message
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM


Copyright 2011 SAP AG Complete Copyright Notice