Class ExceptionConverter

  • All Implemented Interfaces:
    Populator<java.lang.Object,​java.util.List<ErrorWsDTO>>, Converter<java.lang.Object,​java.util.List<ErrorWsDTO>>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.core.convert.converter.Converter<java.lang.Object,​java.util.List<ErrorWsDTO>>

    public class ExceptionConverter
    extends AbstractErrorConverter
    Converts Exception to a list of ErrorWsDTO.
    • Constructor Detail

      • ExceptionConverter

        public ExceptionConverter()
    • Method Detail

      • filterExceptionMessage

        protected java.lang.String filterExceptionMessage​(java.lang.Throwable t)
        The general idea is to reveal only the message from topmost Throwable. This function inverts the effect of Spring's NestedRuntimeException, which has overloaded getMessage function
        Returns:
        filtered message