RegistryAccessErrorException

From Xojo Documentation

Class (inherits from RuntimeException)


The Registry items feature is Windows-only. This exception occurs if you try to use the RegistryItem class without proper access privileges, try to access a key that does not exist or try to use it in macOS or Linux.

Properties
CallStack Message Stack
ErrorNumber Stack
Methods
CallStack Stack

Sample Code

Try
Dim reg As New RegistryItem("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersions")
Catch e As RegistryAccessErrorException
// Error, perhaps path is invalid
End Try

See Also

Exception, Try statements, RegistryItem class.