Optional
causeOptional
stackStatic
Optional
prepareStatic
stackStatic
captureStatic
isBSONErrorAll errors thrown from the BSON library inherit from BSONError
.
This method can assist with determining if an error originates from the BSON library
even if it does not pass an instanceof
check against this class' constructor.
any javascript value that needs type checking
Optional override for formatting stack traces