Add exception classes.