Code of a WebViewerError:
'INVALID_OPTIONS' (missing path, element is not an HTMLElement, unsupported mount or invalid URL), 'ALREADY_MOUNTED' (a viewer is already mounted on the element),
'UNSUPPORTED_BROWSER' (no Canvas, WebAssembly or Worker), 'UI_LOAD_FAILED' (the UI page did not load or register; check path / uiPath),
'VERSION_MISMATCH' (the loader and UI versions differ), 'INIT_FAILED' (the UI failed to initialize), 'DESTROYED' (destroyed before it was ready).
Code of a WebViewerError: 'INVALID_OPTIONS' (missing path, element is not an HTMLElement, unsupported mount or invalid URL), 'ALREADY_MOUNTED' (a viewer is already mounted on the element), 'UNSUPPORTED_BROWSER' (no Canvas, WebAssembly or Worker), 'UI_LOAD_FAILED' (the UI page did not load or register; check path / uiPath), 'VERSION_MISMATCH' (the loader and UI versions differ), 'INIT_FAILED' (the UI failed to initialize), 'DESTROYED' (destroyed before it was ready).