Module hiveutils
Back to master index

[public] Service Point hiveutils.ExceptionMappingInterceptor Interface: org.apache.hivemind.ServiceInterceptorFactory
Interceptor factory that adds customized Exception mapping at the service-point level.
Parameters occurs: one_plus
Parameters Schema
Element <exception-mapping>
Each exception-mapping element defines how an exception thrown by the built service shall be mapped to another one. The order in which exception-mapping elements appear is important (just like the order of catch clauses in Java).
Attribute from (required) Translator: class
Attribute to (required) Translator: class
Conversion Rules
<conversion class="net.sourceforge.hiveutils.service.impl.ExceptionMappingContribution" />
Element <exception-mapper>
Directly defines an object implementing ExceptionMapper to do specific mappings that are not one-to-one. This is allowed only once and it is exclusive with any use of the exception-mapping tag.
Attribute mapper (required) Translator: object
Conversion Rules
<conversion class="net.sourceforge.hiveutils.service.impl.ExceptionMapperContribution" />
Implementation
  • <create-instance class="net.sourceforge.hiveutils.service.impl.ExceptionMappingInterceptorFactory" model="primitive" />

Module hiveutils
Back to master index