fix #275 better exception message when using a custom contract resolver that does not extend ElasticResolver