Class ServiceExceptionFassade

java.lang.Object
de.bund.bva.isyfact.serviceapi.core.serviceimpl.ServiceExceptionFassade
All Implemented Interfaces:
Validatable, org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

@Deprecated public class ServiceExceptionFassade extends Object implements org.aopalliance.intercept.MethodInterceptor, Validatable
Deprecated.
This module is deprecated and will be removed in a future release. It is recommended to use REST according to IsyFacts REST Concept instead.
A generic exception facade for service and native GUI components. This implementation catches all exceptions and handles them as follows:
  • A BaseException is logged at a configurable log level (see setLogLevelExceptions(String)). It is mapped to a PlisToException which is configurable per concrete BaseException subclass.
  • A TechnicalRuntimeException is logged at level ERROR and mapped to a globally configurable PlisTechnicalToException.
  • A miscellaneous exception is first wrapped in a globally configurable TechnicalRuntimeException and then logged at ERROR level. The wrapping creates an exception ID and unique ID, which then appear in both the server log and the caller log. The wrapped exception is then mapped to the globally configurable PlisTechnicalToException.
  • Constructor Details

    • ServiceExceptionFassade

      public ServiceExceptionFassade(MethodMappingSource methodMappingSource, ExceptionMappingSource exceptionMappingSource, AusnahmeIdErmittler ausnahmeIdErmittler, Class<? extends TechnicalRuntimeException> appTechnicalRuntimeException)
      Deprecated.
      Creates a generic exception facade for service and native GUI components.
      Parameters:
      methodMappingSource - Configuration for method mapping.
      exceptionMappingSource - Configuration for exception mapping.
      ausnahmeIdErmittler - Configuration for exception ID determination during wrapping.
      appTechnicalRuntimeException - Exception to which other exceptions are mapped.
  • Method Details

    • setLogLevelExceptions

      public void setLogLevelExceptions(String logLevelExceptions)
      Deprecated.
    • invoke

      public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
      Deprecated.
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
      Throws:
      Throwable
    • getMethodSignatureString

      protected String getMethodSignatureString(org.aopalliance.intercept.MethodInvocation invocation)
      Deprecated.
      Creates the signature string of the given call.
      Parameters:
      invocation - the method call
      Returns:
      the signature string
    • getMethodSignatureString

      protected String getMethodSignatureString(Method method)
      Deprecated.
      Creates the signature string of the given call.
      Parameters:
      method - the called method
      Returns:
      the signature string
    • validateConfiguration

      public void validateConfiguration(Class<?> remoteBeanInterface, Object target)
      Deprecated.
      Description copied from interface: Validatable
      Überprüft die Konsistenz der Konfiguration.
      Specified by:
      validateConfiguration in interface Validatable
      Parameters:
      remoteBeanInterface - die gerufene Schnittstelle
      target - die zu rufende Target-Bean