Added two error classes.