We should make all Error objects thrown in the shell include a 'code' field where applicable so anything catching such a thrown Error can inspect the code to determine what kind of error it was.
- is related to
-
SERVER-20154 Include "code" in javascript "Error" objects thrown by failed assertions where relevant
- Closed