LibraryLink ToToggle FramesPrintFeedback

Chapter 4. Implementing the Interceptors Processing Logic

Processing messages
Unwinding after an error

Figure 4.1 shows the process flow through an interceptor.

Figure 4.1. Flow through an interceptor

Flow through an interceptor

In normal message processing, only the handleMessage() method is called. The handleMessage() method is where the interceptor's message processing logic is placed.

If an error occurs in the handleMessage() method of the interceptor, or any subsequent interceptor in the interceptor chain, the handleFault() method is called. The handleFault() method is useful for cleaning up after an interceptor in the event of an error. It can also be used to alter the fault message.