public abstract class AbstractResponseMapper<T extends Throwable> extends Object implements ResponseMapper<T>
Constructor and Description |
---|
AbstractResponseMapper() |
Modifier and Type | Method and Description |
---|---|
String |
getErrorMessage(Throwable throwable) |
LogLevel |
getLogLevel(Throwable throwable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getThrowableClass, toResponse
@Nullable public LogLevel getLogLevel(@Nonnull Throwable throwable)
getLogLevel
in interface ResponseMapper<T extends Throwable>
Throwable
. Returning null
indicates the response
builder to use its default behavior.@Nullable public String getErrorMessage(@Nonnull Throwable throwable)
getErrorMessage
in interface ResponseMapper<T extends Throwable>
Throwable
. Returning null
indicates the
response builder to use its default behavior.Copyright © 2019 SAP SE. All rights reserved.