clarified exception message to show the actual type passed to the resolver

further improved message of the exception
applied same changes to other methods