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