Class ReturnCode


  • public class ReturnCode
    extends Object
    This class defines enumeration of application return code.
    • Field Detail

      • SUCCESSFUL

        public static final ReturnCode SUCCESSFUL
        Return code: Application successful.
      • CANCELED

        public static final ReturnCode CANCELED
        Return code: User Cancelled operation.
      • USER_DATA_ERROR

        public static final ReturnCode USER_DATA_ERROR
        Return code: User provided invalid data.
      • FILE_SYSTEM_ACCESS_ERROR

        public static final ReturnCode FILE_SYSTEM_ACCESS_ERROR
        Return code: Error accessing file system (reading/writing).
      • CONFIGURATION_ERROR

        public static final ReturnCode CONFIGURATION_ERROR
        Error during the configuration of the Directory Server.
      • IMPORT_ERROR

        public static final ReturnCode IMPORT_ERROR
        Error during the import of data (base entry, from LDIF file or automatically generated data).
      • START_ERROR

        public static final ReturnCode START_ERROR
        Error starting the Open DS server.
      • STOP_ERROR

        public static final ReturnCode STOP_ERROR
        Error stopping the Open DS server.
      • WINDOWS_SERVICE_ERROR

        public static final ReturnCode WINDOWS_SERVICE_ERROR
        Error enabling the Windows service.
      • APPLICATION_ERROR

        public static final ReturnCode APPLICATION_ERROR
        Application specific error.
      • TOOL_ERROR

        public static final ReturnCode TOOL_ERROR
        Error invoking an OpenDS tool.
      • BUG

        public static final ReturnCode BUG
        Return code: Bug.
      • JAVA_VERSION_INCOMPATIBLE

        public static final ReturnCode JAVA_VERSION_INCOMPATIBLE
        Return code: java version non-compatible.
      • USER_INPUT_ERROR

        public static final ReturnCode USER_INPUT_ERROR
        Return code: user provided invalid input.
      • PRINT_VERSION

        public static final ReturnCode PRINT_VERSION
        Return code: Print Version.
      • UNKNOWN

        public static final ReturnCode UNKNOWN
        Return code for errors that are non-specified.
    • Method Detail

      • getReturnCode

        public int getReturnCode()
        Gets the return code to return to the console.
        Returns:
        int code