# Testing errors

**URL:** <https://forum.8thwall.com/t/testing-errors/2260>\
**Category:** Technical Support\
**Tags:** xrextras, loading-screen, runtime-error\
**Created:** [July 30, 2024, 7:09pm UTC](https://forum.8thwall.com/t/testing-errors/2260 "2024-07-30T19:09:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Potter](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/matthew_potter/32/792_2.png) [@Matthew\_Potter](https://forum.8thwall.com/u/Matthew_Potter)\
**Post date:** [July 30, 2024, 7:09pm UTC](https://forum.8thwall.com/t/testing-errors/2260/1 "2024-07-30T19:09:17Z")

</div>

Is there any way to test errors and error screens? We’re getting ready to launch a site for a client and there has been a few rare cases where the cameraSelectionWorldTrackingError comes up. We’re wanting to replace the screen with a custom one but although I’ve added CSS to do so, the RARE case we’re able to replicate it (abundant refreshes on an overheating iPhone), it isn’t working. Is there a way to force errors for testing / design purposes? Also… the only reason we found the error content was from the github repo ([web/xrextras/src/loadingmodule/loading-module.html at master · 8thwall/web · GitHub](https://github.com/8thwall/web/blob/master/xrextras/src/loadingmodule/loading-module.html)), it isn’t in the documentation that we’ve seen.

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [July 30, 2024, 8:10pm UTC](https://forum.8thwall.com/t/testing-errors/2260/2 "2024-07-30T20:10:12Z")

</div>

[Have you tried throwing errors?](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/throw)

---

<div class="post-metadata">

**Author:** ![Matthew\_Potter1](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@Matthew\_Potter1](https://forum.8thwall.com/u/Matthew_Potter1)\
**Post date:** [July 30, 2024, 8:42pm UTC](https://forum.8thwall.com/t/testing-errors/2260/3 "2024-07-30T20:42:29Z")

</div>

This is more specifically the error screens that are built-into 8th wall. Your error pages that occur outside of the normal operation of an application.  
These errors:

> <https://github.com/8thwall/web/blob/master/xrextras/src/loadingmodule/loading-module.js>

I’d like to find the best way to optimally test the different screens reliably since although we have created CSS rules to override your designs, they don’t seem to be applying.

---

<div class="post-metadata">

**Author:** ![Evan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/evan/32/431_2.png) [@Evan](https://forum.8thwall.com/u/Evan)\
**Post date:** [July 30, 2024, 9:01pm UTC](https://forum.8thwall.com/t/testing-errors/2260/4 "2024-07-30T21:01:43Z")

</div>

I think you’re referring to the [runtime error module](https://github.com/8thwall/web/tree/master/xrextras/src/runtimeerrormodule) - try overriding the CSS of these elements instead.

You can simulate a runtime error by throwing an error from a camera pipeline module:

```auto
const onxrloaded = () => {
  XR8.addCameraPipelineModule({
    name: 'throw-error',
    onAttach: () => {
      throw new Error()
    },
  })
}

window.XR8 ? onxrloaded() : window.addEventListener('xrloaded', onxrloaded)

```

---

<div class="post-metadata">

**Author:** ![Matthew\_Potter1](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@Matthew\_Potter1](https://forum.8thwall.com/u/Matthew_Potter1)\
**Post date:** [July 30, 2024, 9:18pm UTC](https://forum.8thwall.com/t/testing-errors/2260/5 "2024-07-30T21:18:33Z")

</div>

This helps. And yes, it seems you’re right, that is the one we were having. Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/2X/9/9212a857458f1b03a6accb129e0f8cbea408e3e5.png) [@system](https://forum.8thwall.com/u/system)\
**Post date:** [August 3, 2024, 9:19pm UTC](https://forum.8thwall.com/t/testing-errors/2260/6 "2024-08-03T21:19:04Z")

</div>

Closed on August 3, 2024, 9:19pm UTC

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.
