Class InvalidRegistryHandleException
- 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.InvalidRegistryHandleException
-
- All Implemented Interfaces:
Serializable
public class InvalidRegistryHandleException extends RegistryException
Thrown when an attempt is made to access a registry key using a handle that is no longer valid.- Author:
- Rob Spoor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidRegistryHandleException(String path)
Creates a new exception.InvalidRegistryHandleException(String path, String machineName)
Creates a new exception.
-
Method Summary
-
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
-
InvalidRegistryHandleException
public InvalidRegistryHandleException(String path)
Creates a new exception.- Parameters:
path
- The path of the registry key the invalid handle is for.
-
InvalidRegistryHandleException
public InvalidRegistryHandleException(String path, String machineName)
Creates a new exception.- Parameters:
path
- The path of the registry key the invalid handle is for.machineName
- The remote machine of the registry key the invalid handle is for, ornull
for the local machine.- Since:
- 1.1
-
-