jamsden / LDAP-RTC-Synchronizer

A simple utility to synchronize user information in LDAP (RACF) with RTC
0 stars 0 forks source link

The main application should return success, warning or failure status codes #1

Closed jamsden closed 6 years ago

jamsden commented 6 years ago

New requirement: Provide success or failure status code based on whether any exceptions were raised that resulted in at least some update not completing.

This facilitates using the program in scripts.

jamsden commented 6 years ago

Added Status class for maintaining a status code for use by an application. The examined all the places the app raised an exception or logged an error, and set the status appropriately.

Status is initialized to 0. 0 - implies the application completed normally -1 - the application completed, but there were some issues. Users should explore the log and resolve the issues as needed. -2 - the application could not run at all, either because there were errors on the command line, or it couldn't connect to other required servers.