[SERVER-32239] Enable throwing of exceptions with state through javascript Created: 08/Dec/17  Updated: 30/Oct/23  Resolved: 19/Jan/18

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: 3.7.2

Type: New Feature Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-12-18, Platforms 2018-01-01, Platforms 2018-01-15, Platforms 2018-01-29
Participants:

 Description   

Exceptions thrown through javascript should avoid the reportError facility where possible and prefer exception object throwing. This is required to enable throwing of exceptions with state (beyond their code) through js land safely.



 Comments   
Comment by Githook User [ 19/Jan/18 ]

Author:

{'name': 'Jason Carey', 'email': 'jcarey@argv.me', 'username': 'hanumantmk'}

Message: SERVER-32239 Lossless status throwing in JS

Enable throwing of status without conversion to error reports in
spidermonkey. This will enable throwing of sidecars and other rich data
through js land.
Branch: master
https://github.com/mongodb/mongo/commit/1c629fb3e0cfdf218a6cdb20882806e3b7dd9e9c

Generated at Thu Feb 08 04:29:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.