Class ServiceLayerExceptionTranslator

java.lang.Object
org.ameba.aop.ServiceLayerAspect
org.openwms.core.uaa.ServiceLayerExceptionTranslator

@Component @Order(16) class ServiceLayerExceptionTranslator extends org.ameba.aop.ServiceLayerAspect
A ServiceLayerExceptionTranslator.
Author:
Heiko Scherrer
  • Constructor Details

    • ServiceLayerExceptionTranslator

      ServiceLayerExceptionTranslator()
  • Method Details

    • doTranslateException

      protected Optional<Exception> doTranslateException(Exception ex)
      Override method to handle the transaction yourself and skip to the default exception handling .
      Overrides:
      doTranslateException in class org.ameba.aop.ServiceLayerAspect
      Parameters:
      ex - Exception to handle
      Returns:
      An empty Optional to use the default exception handling or an Exception to skip default handling