i create currently a SAP Portlet that needs to react on different JCo errors.
Badly the JCo error itself is not part of the return object - clear, because the call get not executed.
so i try to find a way to catch different error reasons:
- no connection to backend -- com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
- wrong user -> red -- com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Name or password is incorrect (repeat logon)
- password old, need to update
and then react on this.
i guess the "Error Handler" builder might be the right point to start.
but even with the option "Catch all unhandled exceptions" it does not do anything.
even not on the action <mySAPaction>.execute
could you please help me finding out how to handle the different error types?