If we consider such an error from z/OSMF:
Operation 'RenameOperation' has failed
eu.ibagroup.formainframe.dataops.exceptions.CallException: Unable to rename the selected member
Code: 500
CATEGORY: 4.0
MESSAGE: Rename member failed
RETURN CODE: 4.0
DETAILS:
ISRZ002 Member already exists - Directory already contains the specified member name.
REASON: 0.0
There is too much technical information written here, which is issued in the current notification:
From the user's point of view, it would be more convenient to get more concise information, and if necessary, open a dialog with a full description of the error:
Do something similar for all possible error types. If Details are not provided by z/OSMF, then output Unknown error in details. For title - if there is no title, then output the first message from the stack without specifying the class (eu.ibagroup.formainframe.dataops.exceptions.CallException: Unable to rename the selected member = Unable to rename the selected member), otherwise - Unknown error during the operation run
If we consider such an error from z/OSMF: Operation 'RenameOperation' has failed
eu.ibagroup.formainframe.dataops.exceptions.CallException: Unable to rename the selected member Code: 500 CATEGORY: 4.0 MESSAGE: Rename member failed RETURN CODE: 4.0 DETAILS: ISRZ002 Member already exists - Directory already contains the specified member name. REASON: 0.0
There is too much technical information written here, which is issued in the current notification:
From the user's point of view, it would be more convenient to get more concise information, and if necessary, open a dialog with a full description of the error:
Do something similar for all possible error types. If Details are not provided by z/OSMF, then output Unknown error in details. For title - if there is no title, then output the first message from the stack without specifying the class (eu.ibagroup.formainframe.dataops.exceptions.CallException: Unable to rename the selected member = Unable to rename the selected member), otherwise - Unknown error during the operation run