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
public class NoSuchRegistryValueException extends RegistryException
Thrown when an attempt is made to access a registry value that does not exist.- Author:
- Rob Spoor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NoSuchRegistryValueException(String path, String name)
Creates a new exception.NoSuchRegistryValueException(String path, String machineName, String name)
Creates a new exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Returns the name of the non-existing registry value.-
Methods inherited from class com.github.robtimus.os.windows.registry.RegistryException
errorCode, machineName, path
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NoSuchRegistryValueException
public NoSuchRegistryValueException(String path, String name)
Creates a new exception.- Parameters:
path
- The path to the registry key for which the non-existing registry value was attempted to be accessed.name
- The name of the non-existing registry value.
-
NoSuchRegistryValueException
public NoSuchRegistryValueException(String path, String machineName, String name)
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, ornull
for the local machine.name
- The name of the non-existing registry value.- Since:
- 1.1
-
-
Method Detail
-
name
public String name()
Returns the name of the non-existing registry value.- Returns:
- The name of the non-existing registry value.
-
-