mrb: define error classes

anzu-query-replace-regexp is my friend. :-)