How to catch abort errors in JavaScript? #1359
-
Support QuestionHow can I catch a Perspective error from JavaScript? For example, if I pass a bad config to But wrapping the offending call in a try/catch has no effect. I didn't find anything about error handling in the documentation. This looks like what I want, but seems to only apply to Python/C++, not JavaScript: What do you suggest? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Due to the design of these "proxy" objects to their real-equivalents which live in the WebWorker, catching constructor errors is not possible up to version |
Beta Was this translation helpful? Give feedback.

Due to the design of these "proxy" objects to their real-equivalents which live in the WebWorker, catching constructor errors is not possible up to version
0.6.2. On themasterbranch and thus in upcoming0.7.0release, theview()andtable()factory methods areasyncand will throw constructor errors when invoked within anasynccontext. See #1289 for details.