synchronoss / cpo-api

Class Persistence Object (CPO) Application Programming Interface (API).
GNU Lesser General Public License v2.1
3 stars 3 forks source link

Add better error reporting to XAException code #22

Closed berryware closed 8 years ago

berryware commented 8 years ago

XAException lets you create an exception using an int or a string. The ints are defined based on the XAResource spec. Using ints gives no information to the developer on what went wrong.

We need to build an Enumeration of the ints to the string name for the int and then have a helper function that appends a message from the developer to it. This way the ERROR_CODE is shown along with a helpful message

berryware commented 8 years ago

Added in an enum that contains all the XAERR codes and has a helper function that creates an XAException.