xadisk
  1. xadisk
  2. XADISK-87

XAException thrown by methods in XAResource objects of XADisk should contain the underlying cause.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: connector
    • Labels:
      None

      Description

      Many Thanks to Stelios for bringing this issue to light on discussion thread at http://groups.google.com/group/xadisk/browse_thread/thread/3f77f81b5afd9bee

      Various methods in XAResourceImpl (in org.xadisk.connector) and LocalEventProcessingXAResource (in org.xadisk.connector.inbound) throw XAException according to the standard XAResource interface specification. But, when throwing this XAException, they do not set the underlying cause of the exception.

      Although the constructors of XAException do not accept "Throwable cause" as an argument, we can use initCause(Throwable cause) method of the super class "Throwable" to attach the underlying cause.

      Thanks,
      Nitin

        Activity

        Hide
        Nitin Verma added a comment -

        Checked-in the changes to trunk.

        Show
        Nitin Verma added a comment - Checked-in the changes to trunk.

          People

          • Assignee:
            Nitin Verma
            Reporter:
            Nitin Verma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: