Class RegistryKeyAlreadyExistsException
- 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.RegistryKeyAlreadyExistsException
-
- All Implemented Interfaces:
Serializable
public class RegistryKeyAlreadyExistsException extends RegistryException
Thrown when an attempt is made to create a registry key that already exists.- Author:
- Rob Spoor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RegistryKeyAlreadyExistsException(String path)
Creates a new exception.RegistryKeyAlreadyExistsException(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
-
RegistryKeyAlreadyExistsException
public RegistryKeyAlreadyExistsException(String path)
Creates a new exception.- Parameters:
path
- The path that was used to create the existing registry key.
-
RegistryKeyAlreadyExistsException
public RegistryKeyAlreadyExistsException(String path, String machineName)
Creates a new exception.- Parameters:
path
- The path that was used to create the existing registry key.machineName
- The remote machine of the registry key that was attempted to be created, ornull
for the local machine.- Since:
- 1.1
-
-