This could use less generic exception class.