support configurable ErrorFormatter