Define NoSuchNamespaceException

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Not an Issue
    • Priority: P3
    • 7
    • Affects Version/s: 7
    • Component/s: core-svc

      The method JMXNamespaces.narrowToNamespace(MBeanServerConnection, String) throws IllegalArgumentException if either argument is null (though that is not yet documented), OR if the namespace does not exist. These are two fundamentally different things and it is unhelpful for the same exception to cover both of them. We should define a new NoSuchNamespaceException for this and similar cases (notably ClientContext.withContext). It should be a RuntimeException.

            Assignee:
            Daniel Fuchs
            Reporter:
            Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: