Fixing unrecognized exception error msg