When dealing with code execution in remote contexts, it's important to be able to catch and handle any errors that might occur.
Remote Browser has a concept of "Remote Errors" which are unhandled errors thrown in one of the remote script contexts.
These errors are automatically caught and transferred back to the client context where a RemoteError
is raised.
This new error will have a remoteError
property which is an object containing the name, message, stack information, etc. from the original error.