package Ġcom . cogn if ide . gradle . a em . common . instance . service . repository Ċ Ċ import Ġcom . cogn if ide . gradle . a em . A em Extension Ċ import Ġcom . cogn if ide . gradle . a em . common . http . Response Exception Ċ import Ġcom . cogn if ide . gradle . a em . common . instance . Instance Ċ import Ġcom . cogn if ide . gradle . a em . common . instance . Instance HttpClient Ċ import Ġorg . apache . http . HttpResponse Ċ Ċ class ĠRepository HttpClient ( a em : ĠA em Extension , Ġinstance : ĠInstance ) Ġ: ĠInstance HttpClient ( a em , Ġinstance ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġthrow Status Exception ( response : ĠHttpResponse ) Ġ{ ĊĠĠĠĠĠĠĠ Ġthrow ĠResponse Exception (" Repository Ġerror . ĠUnexpected Ġresponse Ġfrom Ġ$ instance : Ġ${ response . status Line }\ n " Ġ+ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġresponse . entity . content . buffered Reader (). read Text ()) ĊĠĠĠ Ġ} Ċ }