Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Questions about some errors that cannot be caught #18

Open
Lizirui opened this issue Oct 19, 2018 · 1 comment
Open

Questions about some errors that cannot be caught #18

Lizirui opened this issue Oct 19, 2018 · 1 comment

Comments

@Lizirui
Copy link

Lizirui commented Oct 19, 2018

I am listening for an ‘error’ event to catch an error. ( vue App )
this.$refs.editor.addEventListener('error', (evt: any) => { console.log(evt, "evt") });
But there are some errors of type="error" that are not captured, such as
message:"Session is too old. Max Session Duration Reached" type:"error"
I want to be able to catch all the type="error" errors to do some processing.
help

@benfonty
Copy link
Contributor

benfonty commented Oct 22, 2018

Hello,

I made a quick test and was able to capture the event using in the console:

const ed = document.getElementById('editor');
ed.addEventListener('error',(e) => {console.log(e.detail);});

Are you sure there is nothing that prevent the event to reach your component ?

Anyway, if you want to prevent this event from happening you might want to use recognitionParams.v4.alwaysConnected = true.

Regards

padewitte pushed a commit that referenced this issue Nov 8, 2018
…aster

* commit 'd4601d9b868b49efa661fa5d9da8a006575fe8dc':
  [smartGuide] fix the always appearing scrollbar on edge (MSIS-995)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants