public HttpClientResponseBuilder doThrowException ( IOException exception ) { newRule . addAction ( new ExceptionAction ( exception ) ) ; return new HttpClientResponseBuilder ( newRule ) ; }
Adds action which throws provided exception .