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.

ErrorNumber Message Reason fa-lock-32.png
Stack StackFrames

Sample Code

Var 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.