Class ExceptionConverter
java.lang.Object
de.hybris.platform.converters.impl.AbstractConverter<Object,List<ErrorWsDTO>>
de.hybris.platform.webservicescommons.errors.converters.AbstractErrorConverter
de.hybris.platform.webservicescommons.errors.converters.ExceptionConverter
- All Implemented Interfaces:
Populator<Object,,List<ErrorWsDTO>> Converter<Object,,List<ErrorWsDTO>> org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean,org.springframework.core.convert.converter.Converter<Object,List<ErrorWsDTO>>
Converts
Exception to a list of ErrorWsDTO.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.webservicescommons.errors.converters.AbstractErrorConverter
createTargetElementMethods inherited from class de.hybris.platform.converters.impl.AbstractConverter
afterPropertiesSet, convert, convert, createFromClass, createTarget, getMyBeanName, setBeanName, setTargetClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convertAll, convertAllIgnoreExceptions, getLoggerMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
ExceptionConverter
public ExceptionConverter()
-
-
Method Details
-
supports
- Specified by:
supportsin classAbstractErrorConverter
-
populate
Description copied from class:AbstractConverterOverride this method to populate the target from the source- Specified by:
populatein interfacePopulator<Object,List<ErrorWsDTO>> - Specified by:
populatein classAbstractConverter<Object,List<ErrorWsDTO>> - Parameters:
o- the source instancewebserviceErrorList- the target instance to fill- See Also:
-
filterExceptionMessage
The general idea is to reveal only the message from topmostThrowable. This function inverts the effect of Spring'sNestedRuntimeException, which has overloaded getMessage function- Returns:
- filtered message
-