public final class DefaultErrorMapper extends Object implements ServiceClientErrorMapper, ServiceProviderErrorMapper
| Modifier and Type | Field and Description |
|---|---|
static DefaultErrorMapper |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
toError(ServiceMessage message)
Maps service message to an exception.
|
ServiceMessage |
toMessage(String qualifier,
Throwable throwable)
Maps an exception to a
ServiceMessage. |
public static final DefaultErrorMapper INSTANCE
public Throwable toError(ServiceMessage message)
ServiceClientErrorMappertoError in interface ServiceClientErrorMappermessage - the message to map to an exception.public ServiceMessage toMessage(String qualifier, Throwable throwable)
ServiceProviderErrorMapperServiceMessage.toMessage in interface ServiceProviderErrorMapperqualifier - original qualifier.throwable - the exception to map to a service message.Copyright © 2015–2021. All rights reserved.