throw exception when setDefaultAttributes called directly