NashornException to expose thrown object

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 8u20
    • Component/s: core-libs
    • None
    • b02
    • generic
    • generic

        It would be very useful to retrieve the ScriptObjectMirror, Java Exception or any other throwable type.
        There is no way to retrieve this informationt without using internal API.

        ECMAException ecma = (ECMAException) nex;
        if (ecma.getThrown() instanceof ScriptObject) {
          ScriptObject so = (ScriptObject) ecma.getThrown();
          for (String m : so.getOwnKeys(false)) {
           // XXX
          }
        }

              Assignee:
              Sundararajan Athijegannathan
              Reporter:
              Jean-Francois Denise (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: