Added an exception class.