Make expected error and clip error configurable.