Use the error message to build the 'exception class'