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
BaseExceptionis logged at a configurable log level (seesetLogLevelExceptions(String)). It is mapped to aPlisToExceptionwhich is configurable per concreteBaseExceptionsubclass. - A
TechnicalRuntimeExceptionis logged at level ERROR and mapped to a globally configurablePlisTechnicalToException. - A miscellaneous exception is first wrapped in a globally configurable
TechnicalRuntimeExceptionand 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 configurablePlisTechnicalToException.
-
Constructor Summary
ConstructorsConstructorDescriptionServiceExceptionFassade(MethodMappingSource methodMappingSource, ExceptionMappingSource exceptionMappingSource, AusnahmeIdErmittler ausnahmeIdErmittler, Class<? extends TechnicalRuntimeException> appTechnicalRuntimeException) Deprecated.Creates a generic exception facade for service and native GUI components. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetMethodSignatureString(Method method) Deprecated.Creates the signature string of the given call.protected StringgetMethodSignatureString(org.aopalliance.intercept.MethodInvocation invocation) Deprecated.Creates the signature string of the given call.invoke(org.aopalliance.intercept.MethodInvocation invocation) Deprecated.voidsetLogLevelExceptions(String logLevelExceptions) Deprecated.voidvalidateConfiguration(Class<?> remoteBeanInterface, Object target) Deprecated.Überprüft die Konsistenz der Konfiguration.
-
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
Deprecated. -
invoke
Deprecated.- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-
getMethodSignatureString
Deprecated.Creates the signature string of the given call.- Parameters:
invocation- the method call- Returns:
- the signature string
-
getMethodSignatureString
Deprecated.Creates the signature string of the given call.- Parameters:
method- the called method- Returns:
- the signature string
-
validateConfiguration
Deprecated.Description copied from interface:ValidatableÜberprüft die Konsistenz der Konfiguration.- Specified by:
validateConfigurationin interfaceValidatable- Parameters:
remoteBeanInterface- die gerufene Schnittstelletarget- die zu rufende Target-Bean
-