Elliotte Rusty Harold created MNG-7892:
------------------------------------------
Summary: MavenException should be a checked exception
Key: MNG-7892
URL: https://issues.apache.org/jira/browse/MNG-7892
Project: Maven
Issue Type: Bug
Components: Core
Affects Versions: 4.0.0-alpha-7
Reporter: Elliotte Rusty Harold
MavenException is used to report errors in parsing pom.xml files that are
external the Maven program itself. Whether they are thrown or not does not
indicate a bug in Maven's code. It is an error condition in the user's code
that needs to be prepared for and handled by Maven core, much like a program
should not assume that a file will be read withouyt IOExceptions or XML parsing
errors. Thus this needs to be a checked exception.
Alternatively, if this is used bot for cases that arise from outside Maven's
own code and bugs in Maven's code, then two separate exception classes are
needed, one checked and one unchecked.
This is in
api/maven-api-core/src/main/java/org/apache/maven/api/services/MavenException.java
--
This message was sent by Atlassian Jira
(v8.20.10#820010)