Class AS4ErrorMapper


  • public class AS4ErrorMapper
    extends Object
    AS4 error mapper maps error codes with relevant severity and category.
    • Constructor Detail

      • AS4ErrorMapper

        public AS4ErrorMapper()
    • Method Detail

      • setErrorDetailsAndDesc

        public static void setErrorDetailsAndDesc​(AS4ErrorMapper.ErrorCode errorCode,
                                                  Error error,
                                                  String errorDescription)
        Helper method to set error details and description. When given the errorCode, error and errorDescription, This function will set correct severity and categories, and also will create Description object and set it to error.
        Parameters:
        errorCode - AS4ErrorMapper.ErrorCode object
        error - Error object
        errorDescription - Error description