Properly constructed base class for error objects