public static void handleErrorResponse ( String msg , String responseText ) { String responseHtml ; Environment instance = getInstance ( ) ; try { responseHtml = instance . getHtmlForXml ( responseText ) ; } catch ( Exception e ) { responseHtml = instance . getHtml ( value -> value , responseText ) ; } throw new FitFailureException ( msg + responseHtml ) ; }
Creates exception that will display nicely in a columnFixture .