Uploaded image for project: 'OpenTrafficSim'
  1. OpenTrafficSim
  2. OTS-135

Throw.when cannot throw Exceptions that can be internally thrown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Highest
    • Resolution: Unresolved
    • Labels:
      None

      Description

      If for instance you want to throw an IllegalArgumentException, the catch (IlligalArgumentException) will catch it as if newInstance() had an illegal argument.

      Solution: put successful throw outside try-catch statements?

        Attachments

          Activity

            People

            • Assignee:
              averbraeck Alexander Verbraeck
              Reporter:
              w.j.schakel Wouter Schakel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 15 minutes
                15m
                Remaining:
                0m
                Logged:
                Time Not Required
                Not Specified