Add ErrorCode.Class()

This returns the "class" of an error as a valid ErrorCode.