ErrorCode enum is now returned by GetError().