public class ExceptionConverter extends AbstractErrorConverter
Exception to a list of ErrorWsDTO.| Constructor and Description |
|---|
ExceptionConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
filterExceptionMessage(java.lang.Throwable t)
The general idea is to reveal only the message from topmost
Throwable. |
void |
populate(java.lang.Object o,
java.util.List<ErrorWsDTO> webserviceErrorList)
Override this method to populate the target from the source
|
boolean |
supports(java.lang.Class clazz) |
createTargetElementafterPropertiesSet, convert, convert, createFromClass, createTarget, getMyBeanName, setBeanName, setTargetClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertAll, convertAllIgnoreExceptions, getLoggerpublic boolean supports(java.lang.Class clazz)
supports in class AbstractErrorConverterpublic void populate(java.lang.Object o,
java.util.List<ErrorWsDTO> webserviceErrorList)
AbstractConverterpopulate in interface Populator<java.lang.Object,java.util.List<ErrorWsDTO>>populate in class AbstractConverter<java.lang.Object,java.util.List<ErrorWsDTO>>o - the source instancewebserviceErrorList - the target instance to fillAbstractConverter.setTargetClass(Class)protected java.lang.String filterExceptionMessage(java.lang.Throwable t)
Throwable. This function inverts the effect of
Spring's NestedRuntimeException, which has overloaded getMessage functionCopyright © 2018 SAP SE. All Rights Reserved.