> For the complete documentation index, see [llms.txt](https://documentation.sceenic.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.sceenic.co/watch-together-sdk/sscale-confluence-tutorials/web/sample-application/errors-handling.md).

# Errors handling

For any application, you'll need to add error handling. For logging errors, you can use tools such as Sentry.

[WT Error codes](https://documentation.sceenic.co/watch-together-sdk/sscale-confluence-api-references/sscale-confluence-web-sdk-reference/sscale-confluence-errorlisteners-websdk#session-error-codes)

```javascript
WTSDK.ErrorsListeners.onSessionError((e) => {
	...
	// Sending errors to your errors logger
	...
	// console.log('handling errors');
	// console.log(e.code);
	// console.log(e.message);
});
```
