CSHARP-1106: Refactor exception class hierarchy.