Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4469029

Propogate Throwable(Throwable cause) constructor to subclases

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • core-libs
    • generic
    • generic



      Name: bsC130419 Date: 06/12/2001


      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)


      Throwable now has a Throwable(Throwable cause) and a Throwable(String
      message,Throwable cause) constructor, which is wonderful. Exception,
      RuntimeException and Error let me access that constructor, but few other
      subclasses do. Please propogate the Throwable cause argument wherever you can
      throughout the standard libraries. I'd like to use it immediately in
      IOException, SQLException, and the EJB family of exceptions. Looks like it
      already made it into RemoteException, which is great.

      You'll probably have to pass the buck to other groups to get them to add this
      api to their exceptions. However, they want to do it more than you think.
      (Review ID: 126335)

      Also requested: ConcurrentModificationException

      ======================================================================

            jjb Josh Bloch (Inactive)
            bstrathesunw Bill Strathearn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: