throwHTTPError method

dynamic throwHTTPError(
  1. String resStatusCode,
  2. String resBody
)

Implementation

throwHTTPError(String resStatusCode, String resBody) {
  Dao.inst.isDebug == true
      ? openDialog(Dao.inst.httpErrorHeader,
          '${Dao.inst.httpPreErrorMessage}  \n\n Error Code - $resStatusCode \n\n Error - $resBody  \n\n${Dao.inst.httpPostErrorMessage}')
      : print(
          '${Dao.inst.httpPreErrorMessage}  \n\n Error Code - $resStatusCode \n\n Error - $resBody  \n\n${Dao.inst.httpPostErrorMessage}');
}