Add exception class.