Use DeveloperError instead of throwing object