public interface ExceptionConverter<T extends Throwable>
extends org.apache.servicecomb.foundation.common.utils.SPIOrder
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Throwable throwable) |
InvocationException |
convert(Invocation invocation,
T throwable,
javax.ws.rs.core.Response.StatusType genericStatus) |
static String |
getGenericCode(javax.ws.rs.core.Response.StatusType status) |
static boolean |
isClient(javax.ws.rs.core.Response.StatusType status) |
static boolean isClient(javax.ws.rs.core.Response.StatusType status)
static String getGenericCode(javax.ws.rs.core.Response.StatusType status)
boolean canConvert(Throwable throwable)
throwable - exception will be convertedInvocationException convert(@Nullable Invocation invocation, T throwable, javax.ws.rs.core.Response.StatusType genericStatus)
invocation - related invocation, will be null only when failed to prepare invocationthrowable - exception will be convertedgenericStatus - if can not determine the status type, then use this input valueCopyright © 2017–2022 The Apache Software Foundation. All rights reserved.