Add RuboCop cop for custom error classes
This is a way we could do this. I don't really care about non-error classes that much, so I restricted it to those. If we're happy with this, I can enable this and autocorrect in CE and EE.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/28770.