Interface IAS4RequestHandlerErrorConsumer


public interface IAS4RequestHandlerErrorConsumer
A callback interface to be notified about returned errors.
Since:
0.9.10
Author:
Philip Helger
  • Method Details

    • onAS4ErrorMessage

      void onAS4ErrorMessage(@NonNull IAS4IncomingMessageMetadata aIncomingMessageMetadata, @NonNull IAS4IncomingMessageState aIncomingState, @Nonempty @NonNull @Nonempty AS4ErrorList aEbmsErrors, @NonNull AS4ErrorMessage aAS4ErrorMsg)
      Invoked when an AS4 error message is created. This doesn't mean that the response message is also sent back - that can be configured in the P-Mode.
      Parameters:
      aIncomingMessageMetadata - The message metadata of the message. Never null. Added in v4.3.0
      aIncomingState - The current message processing state. Never null.
      aEbmsErrors - The list of errors that occurred. This list was already applied to the AS4 Error Message. Neither null nor empty. Never modify that list.
      aAS4ErrorMsg - The filled AS4 error message to be returned. Don't touch. Never null.