Uploaded image for project: 'Commons SCXML'
  1. Commons SCXML
  2. SCXML-184

Allow subclasses of SimpleErrorReporter to override the current and only logging handling

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0
    • None

    Description

      Currently the SimpleErrorReporter first evaluates the error condition and builds up a detailed message, and finally writes it to the log (if warnEnabled).

      To allow more control and further usage of the resulting detailed message by subclasses I'm going to move the final step, logging the message, to a separate (protected) handleErrorMessage method.
      So the behavior of SimpleErrorReporter itself won't change, but subclasses now can do something extra/meaningful beyond mere logging with the error message.

      Attachments

        Activity

          People

            ate Ate Douma
            ate Ate Douma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: