consolidating errors into a single class