Class NoSuchRegistryValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.robtimus.os.windows.registry.RegistryException
com.github.robtimus.os.windows.registry.NoSuchRegistryValueException
- All Implemented Interfaces:
Serializable
Thrown when an attempt is made to access a registry value that does not exist.
- Author:
- Rob Spoor
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNoSuchRegistryValueException(String path, String name) Creates a new exception.NoSuchRegistryValueException(String path, String machineName, String name) Creates a new exception. -
Method Summary
Methods inherited from class RegistryException
errorCode, machineName, pathMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchRegistryValueException
-
NoSuchRegistryValueException
Creates a new exception.- Parameters:
path- The path to the registry key for which the non-existing registry value was attempted to be accessed.machineName- The remote machine of the registry key for which the non-existing registry value was attempted to be accessed, ornullfor the local machine.name- The name of the non-existing registry value.- Since:
- 1.1
-
-
Method Details
-
name
Returns the name of the non-existing registry value.- Returns:
- The name of the non-existing registry value.
-