public class TimeoutExceptionConverter extends Object implements ExceptionConverter<TimeoutException>
| Modifier and Type | Field and Description |
|---|---|
static int |
ORDER |
| Constructor and Description |
|---|
TimeoutExceptionConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Throwable throwable) |
InvocationException |
convert(Invocation invocation,
TimeoutException throwable,
javax.ws.rs.core.Response.StatusType genericStatus) |
int |
getOrder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGenericCode, isClientpublic static final int ORDER
public int getOrder()
getOrder in interface org.apache.servicecomb.foundation.common.utils.SPIOrderpublic boolean canConvert(Throwable throwable)
canConvert in interface ExceptionConverter<TimeoutException>throwable - exception will be convertedpublic InvocationException convert(@Nullable Invocation invocation, TimeoutException throwable, javax.ws.rs.core.Response.StatusType genericStatus)
convert in interface ExceptionConverter<TimeoutException>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.