public class ExceptionUtilLimitedImpl extends AbstractLoggableComponent implements ExceptionUtilLimited
ExceptionUtilLimited
.Constructor and Description |
---|
ExceptionUtilLimitedImpl()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
convertForUser(Throwable exception)
Converts the given
exception for end-users. |
String |
getStacktrace(Throwable exception)
|
createLogger, doInitialize, getLogger
doInitialized, getInitializationState, initialize
public String getStacktrace(Throwable exception)
ExceptionUtilLimited
complete stacktrace
of the given exception
as String
. Ensured to work also in limited environments such as GWT.getStacktrace
in interface ExceptionUtilLimited
exception
- is the Throwable
to get the stacktrace from.complete stacktrace
of the given
exception
.public Throwable convertForUser(Throwable exception)
ExceptionUtilLimited
exception
for end-users. Technical exceptions are converted to
TechnicalErrorUserException
.convertForUser
in interface ExceptionUtilLimited
exception
- is the exception to wrap.NlsThrowable
.TechnicalErrorUserException.getOrCreateUserException(Throwable)
,
NlsThrowable.isForUser()
,
TechnicalErrorUserException
Copyright © 2001–2016 mmm-Team. All rights reserved.