public class ConstraintViolationExceptionConverter extends Object implements ExceptionConverter<javax.validation.ConstraintViolationException>
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CODE |
static int |
ORDER |
| Constructor and Description |
|---|
ConstraintViolationExceptionConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Throwable throwable) |
InvocationException |
convert(Invocation invocation,
javax.validation.ConstraintViolationException throwable,
javax.ws.rs.core.Response.StatusType genericStatus) |
int |
getOrder() |
void |
refreshCode()
during UT, DynamicPropertyFactory will be reset, this caused code can not changed by event
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGenericCode, isClientpublic static final int ORDER
public static final String KEY_CODE
public ConstraintViolationExceptionConverter()
public void refreshCode()
public int getOrder()
getOrder in interface org.apache.servicecomb.foundation.common.utils.SPIOrderpublic boolean canConvert(Throwable throwable)
canConvert in interface ExceptionConverter<javax.validation.ConstraintViolationException>throwable - exception will be convertedpublic InvocationException convert(Invocation invocation, javax.validation.ConstraintViolationException throwable, javax.ws.rs.core.Response.StatusType genericStatus)
convert in interface ExceptionConverter<javax.validation.ConstraintViolationException>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.