method

include?

include?(error)
public

Do the error messages include an error with key error?