public class ConnectTimeoutExceptionConverter extends Object implements ExceptionConverter<io.netty.channel.ConnectTimeoutException>
| Modifier and Type | Field and Description |
|---|---|
static int |
ORDER |
| Constructor and Description |
|---|
ConnectTimeoutExceptionConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Throwable throwable) |
InvocationException |
convert(Invocation invocation,
io.netty.channel.ConnectTimeoutException 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<io.netty.channel.ConnectTimeoutException>throwable - exception will be convertedpublic InvocationException convert(@Nullable Invocation invocation, io.netty.channel.ConnectTimeoutException throwable, javax.ws.rs.core.Response.StatusType genericStatus)
convert in interface ExceptionConverter<io.netty.channel.ConnectTimeoutException>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.