updated exception class