Class RegistryException

    • Constructor Detail

      • RegistryException

        public RegistryException​(int errorCode,
                                 String path)
        Creates a new exception.
        Parameters:
        errorCode - The error code that was returned from the Windows API.
        path - The path of the registry key for which this exception was thrown.
      • RegistryException

        public RegistryException​(int errorCode,
                                 String path,
                                 String machineName)
        Creates a new exception.
        Parameters:
        errorCode - The error code that was returned from the Windows API.
        path - The path of the registry key for which this exception was thrown.
        machineName - The remote machine of the registry key for which this exception was thrown, or null for the local machine.
        Since:
        1.1
    • Method Detail

      • errorCode

        public int errorCode()
        Returns the error code that was returned from the Windows API.
        Returns:
        The error code that was returned from the Windows API.
      • path

        public String path()
        Returns the path of the registry key for which this exception was thrown.
        Returns:
        The path of the registry key for which this exception was thrown.
      • machineName

        public String machineName()
        Returns the remote machine of the registry key for which this exception was thrown.
        Returns:
        The remote machine of the registry key for which this exception was thrown, or null for the local machine.
        Since:
        1.1