CSHARP-1041: Moved most exceptions into Core to make backwards compatibility easier.