|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sap.ip.collaboration.core.api.util.exception.BaseRuntimeException
public abstract class BaseRuntimeException
Root class for runtime exceptions with internationalizable error texts
Subclasses of this exception class support internationalizable error texts, exception chaining and logging.
Copyright: Copyright (c) 2002 Company: SAP Portals
| Field Summary | |
|---|---|
static boolean |
DONT_LOG
constant for not logging the exception |
static boolean |
LOG
constant for logging the exception |
| Constructor Summary | |
|---|---|
BaseRuntimeException(boolean log)
constructs a new BaseRuntimeException without a message |
|
BaseRuntimeException(IText aText,
boolean log)
constructs a new BaseRuntimeException with a causing throwable for exception chaining and uses the default mechanism to read message texts |
|
BaseRuntimeException(String aTextKey,
boolean log)
constructs a new BaseRuntimeException with a causing throwable for exception chaining and uses the default mechanism to read message texts |
|
BaseRuntimeException(String aTextKey,
Object[] messageParameters,
boolean log)
constructs a new BaseRuntimeException with a causing throwable for exception chaining and uses the default mechanism to read message texts |
|
BaseRuntimeException(String aTextKey,
Object[] messageParameters,
TextBundle aTextBundle,
boolean log)
constructs a new BaseRuntimeException with a causing throwable for exception chaining and an independent message bundle |
|
BaseRuntimeException(Throwable aCausingThrowable,
boolean log)
constructs a new BaseRuntimeException with a causing throwable for exception chaining. |
|
BaseRuntimeException(Throwable aCausingThrowable,
IText aText,
boolean log)
constructs a new BaseRuntimeException with a causing throwable for exception chaining and a given internationalizable text |
|
BaseRuntimeException(Throwable aCausingThrowable,
String aTextKey,
boolean log)
constructs a new BaseRuntimeException with a causing throwable for exception chaining and uses the default mechanism to read message texts |
|
BaseRuntimeException(Throwable aCausingThrowable,
String aTextKey,
Object[] messageParameters,
boolean log)
constructs a new BaseRuntimeException with a causing throwable for exception chaining and uses the default mechanism to read message texts |
|
BaseRuntimeException(Throwable aCausingThrowable,
String aTextKey,
Object[] messageParameters,
TextBundle aTextBundle,
boolean log)
constructs a new BaseRuntimeException with a causing throwable for exception chaining and an independent message bundle |
|
BaseRuntimeException(Throwable aCausingThrowable,
String aTextKey,
TextBundle aTextBundle,
boolean log)
constructs a new BaseRuntimeException with a causing throwable for exception chaining and an independent message bundle |
|
| Method Summary | |
|---|---|
Throwable |
getCausingThrowable()
returns the causing throwable if there is one or null |
String |
getMessage()
returns an error message formated with the logging locale |
String |
getMessage(Locale locale)
returns a locale specific short error message. |
Throwable |
getRootThrowable()
returns the top most throwable in the exception chain. |
IText |
getText()
returns the text object representing the error message |
boolean |
isLogged()
checks, if the exception was already logged |
void |
logException()
logs the exception using the standard SAP logger |
void |
printStackTrace()
overwrites the original printStackTrace method to also print chained stack traces. |
void |
printStackTrace(PrintStream stream)
overwrites the original printStackTrace method to also print chained stack traces. |
void |
printStackTrace(PrintWriter writer)
overwrites the original printStackTrace method to also print chained stack traces. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final boolean LOG
public static final boolean DONT_LOG
| Constructor Detail |
|---|
public BaseRuntimeException(boolean log)
log - true, if exception should be logged
public BaseRuntimeException(String aTextKey,
boolean log)
aTextKey - key for an internationalized message, or null if no new
message should be setlog - true, if exception should be logged
public BaseRuntimeException(IText aText,
boolean log)
aText - internationalizable text, or null if no new message should be
setlog - true, if exception should be logged
public BaseRuntimeException(String aTextKey,
Object[] messageParameters,
boolean log)
aTextKey - key for an internationalized message, or null if no new
message should be setmessageParameters - objects to fill message place holders,
or null if there are no parameterslog - true, if exception should be logged
public BaseRuntimeException(String aTextKey,
Object[] messageParameters,
TextBundle aTextBundle,
boolean log)
aTextKey - key for an internationalized message, or null if no new
message should be setmessageParameters - objects to fill message place holders,
or null if there are no parametersaTextBundle - message bundle to read the text message from, or null
to use the default mechanism to read text messageslog - true, if exception should be logged
public BaseRuntimeException(Throwable aCausingThrowable,
boolean log)
aCausingThrowable - causing throwable for exception chaining, of null
if there is no causing exceptionlog - true, if exception should be logged
public BaseRuntimeException(Throwable aCausingThrowable,
String aTextKey,
TextBundle aTextBundle,
boolean log)
aCausingThrowable - causing throwable for exception chaining, of null
if there is no causing exceptionaTextKey - key for an internationalized message, or null if no new
message should be setaTextBundle - message bundle to read the text message from, or null
to use the default mechanism to read text messageslog - true, if exception should be logged
public BaseRuntimeException(Throwable aCausingThrowable,
String aTextKey,
boolean log)
aCausingThrowable - causing throwable for exception chaining, of null
if there is no causing exceptionaTextKey - key for an internationalized message, or null if no new
message should be setlog - true, if exception should be logged
public BaseRuntimeException(Throwable aCausingThrowable,
IText aText,
boolean log)
aCausingThrowable - causing throwable for exception chaining, of null
if there is no causing exceptionaText - internationalizable message, or null if no new
message should be setlog - true, if exception should be logged
public BaseRuntimeException(Throwable aCausingThrowable,
String aTextKey,
Object[] messageParameters,
boolean log)
aCausingThrowable - causing throwable for exception chaining, of null
if there is no causing exceptionaTextKey - key for an internationalized message, or null if no new
message should be setmessageParameters - objects to fill message place holders,
or null if there are no parameterslog - true, if exception should be logged
public BaseRuntimeException(Throwable aCausingThrowable,
String aTextKey,
Object[] messageParameters,
TextBundle aTextBundle,
boolean log)
aCausingThrowable - causing throwable for exception chaining, of null
if there is no causing exceptionaTextKey - key for an internationalized message, or null if no new
message should be setmessageParameters - objects to fill message place holders,
or null if there are no parametersaTextBundle - message bundle to read the text message from, or null
to use the default mechanism to read text messageslog - true, if exception should be logged| Method Detail |
|---|
public void logException()
logException in interface IBaseExceptionpublic boolean isLogged()
isLogged in interface IBaseExceptionpublic String getMessage()
getMessage in interface IBaseExceptiongetMessage in class Throwablepublic String getMessage(Locale locale)
getMessage in interface IBaseExceptionlocale - the locale for the messagepublic IText getText()
getText in interface IBaseExceptionpublic void printStackTrace()
printStackTrace in interface IBaseExceptionprintStackTrace in class Throwablepublic void printStackTrace(PrintStream stream)
printStackTrace in interface IBaseExceptionprintStackTrace in class Throwablestream - PrintStream for outputpublic void printStackTrace(PrintWriter writer)
printStackTrace in interface IBaseExceptionprintStackTrace in class Throwablewriter - PrintWriter for outputpublic Throwable getCausingThrowable()
getCausingThrowable in interface IBaseExceptionpublic Throwable getRootThrowable()
this.
getRootThrowable in interface IBaseException| Access Rights |
|---|
| 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
|
[sap.com] KMC-COLL
|
[sap.com] tc/kmc/coll/util
|
api
|
EP-KM-COL
|
|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||