method

match?

match?(attribute, type = nil, **options)
public

See if error matches provided attribute, type, and options.

Omitted params are not checked for a match.