added support for using the typed updated builder with the new api.
CSHARP-1106: Refactor exception class hierarchy.