Added an exception class