You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matthias Bünger (Jira)" <ji...@apache.org> on 2024/01/13 19:03:00 UTC

[jira] [Created] (MCLEAN-116) Create interface method to catch exceptions

Matthias Bünger created MCLEAN-116:
--------------------------------------

             Summary: Create interface method to catch exceptions
                 Key: MCLEAN-116
                 URL: https://issues.apache.org/jira/browse/MCLEAN-116
             Project: Maven Clean Plugin
          Issue Type: Improvement
    Affects Versions: 3.3.2
            Reporter: Matthias Bünger


As stated multiple times in the {{Cleaner}} class, the {{Logger}} interface of this class does not provide a method to log exceptions and needs a refactoring

{code:java}

// ...
            if (logDebug != null) {
                // TODO: this Logger interface cannot log exceptions and needs refactoring
                logDebug.log("Unable to fast delete directory: " + e);
            }

// ...

    private interface Logger {

        void log(CharSequence message);
    }
{code}

_This ticket was created to have this task in the issue tracker_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)