com.sap.tc.cmi.exception

Class CMIRuntimeException

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.tc.cmi.exception.CMIRuntimeException
All Implemented Interfaces:
com.sap.exception.IBaseException, Serializable
Direct Known Subclasses:
CMIIllegalSortCriterionException, CMINoSuchAnnotationException

public class CMIRuntimeException
extends com.sap.exception.BaseRuntimeException

Base class for runtime exceptions thrown by methods of the Common Model Interface. It extends BaseRuntimeException. For further information see there.

This type can be called or extended by applications or frameworks using CMI.

Since:
NW Paris MS3
See Also:
Serialized Form

Type Classification Type Classification:

This class is part of the Common Model Interface and is intended to be subclassed by applications.


Field Summary
 
Fields inherited from interface com.sap.exception.IBaseException
audit, defaultLocale
 
Constructor Summary
CMIRuntimeException(String messageText)
          Creates an exception with a unparameterized text only.
CMIRuntimeException(String messageText, Object[] parameters)
          Creates an exception with the given messageText and text parameters.
CMIRuntimeException(String messageText, Object[] parameters, Throwable cause)
          Creates an exception with the given text, parameters and cause.
CMIRuntimeException(String messageText, Throwable cause)
          Creates an exception with the given (unparameterized) text and cause.
CMIRuntimeException(Throwable cause)
          Creates an exception with the given cause.
 
Method Summary
 Object[] getParameters()
          Returns the array of parameters that are part of the message text or null if there are no parameters.
 
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

CMIRuntimeException

public CMIRuntimeException(String messageText)
Creates an exception with a unparameterized text only. The cause and parameters are set to null.


CMIRuntimeException

public CMIRuntimeException(String messageText,
                           Throwable cause)
Creates an exception with the given (unparameterized) text and cause. The parameters are set to null.


CMIRuntimeException

public CMIRuntimeException(Throwable cause)
Creates an exception with the given cause.


CMIRuntimeException

public CMIRuntimeException(String messageText,
                           Object[] parameters)
Creates an exception with the given messageText and text parameters.

See Also:
MessageFormat

CMIRuntimeException

public CMIRuntimeException(String messageText,
                           Object[] parameters,
                           Throwable cause)
Creates an exception with the given text, parameters and cause. This is the default constructor for this class.

Method Detail

getParameters

public Object[] getParameters()
Returns the array of parameters that are part of the message text or null if there are no parameters.

Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] FRAMEWORK [sap.com] tc/cm/ejb/api api BC-JAS-EJB
[sap.com] FRAMEWORK [sap.com] tc/cmi default BC-WD-JAV-RUN


Copyright 2014 SAP AG Complete Copyright Notice