Uploaded image for project: 'Maven Resolver'
  1. Maven Resolver
  2. MRESOLVER-53

Document runtime exceptions

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Maven Artifact Resolver 1.1.1
    • Fix Version/s: 1.3.3
    • Component/s: resolver
    • Labels:

      Description

      The API documentation should specify which runtime exceptions are thrown when and why. For instance, DefaultArtifact's constructors seem to throw IllegalArgumentExceptions if given bad coordinates:

      Exception in thread "main" java.lang.IllegalArgumentException: Bad artifact coordinates blah blah, expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>

      That's reasonable. However it's not mentioned in the Javadoc, and I'm about to commit code to my project that depends on this behavior. We should document and commit to these.

        Attachments

          Activity

            People

            • Assignee:
              olamy Olivier Lamy (*$^¨%`£)
              Reporter:
              elharo Elliotte Rusty Harold
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: