public static XAException createXAException ( String key , Object args , int xaErrorCode ) { XAException xaX = new XAException ( args == null ? getNLSMessage ( key ) : getNLSMessage ( key , args ) ) ; xaX . errorCode = xaErrorCode ; return xaX ; }
Create an XAException with a translated error message and an XA error code . The XAException constructors provided by the XAException API allow only for either an error message or an XA error code to be specified . This method constructs an XAException with both . The error message is created from the NLS key and arguments .