Introduce base classes for exceptions