config convert error to exception.