Class RegistryAccessDeniedException
- 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.RegistryAccessDeniedException
-
- All Implemented Interfaces:
Serializable
public class RegistryAccessDeniedException extends RegistryException
Thrown when access is denied for a requested operation.- Author:
- Rob Spoor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RegistryAccessDeniedException(String path)
Creates a new exception.RegistryAccessDeniedException(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
-
RegistryAccessDeniedException
public RegistryAccessDeniedException(String path)
Creates a new exception.- Parameters:
path
- The path of the registry key for which access was denied.
-
RegistryAccessDeniedException
public RegistryAccessDeniedException(String path, String machineName)
Creates a new exception.- Parameters:
path
- The path of the registry key for which access was denied.machineName
- The remote machine of the registry key for which access was denied, ornull
for the local machine.- Since:
- 1.1
-
-