I have a script library that throws an IllegalArgumentException under the usual circumstances (you pass semantically invalid parameters), but new java.lang.IllegalArgumentException java.lang.String requires approval. The standard constructors for runtime exceptions (or at least the ones that are common and applicable to pipeline scripts) should be whitelisted OOTB.

          [JENKINS-50270] Whitelist built-in exception constructors

          Christopher Smith created issue -
          Andrew Bayer made changes -
          Assignee Original: Andrew Bayer [ abayer ]

            Unassigned Unassigned
            chrylis Christopher Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: