private static string[] GetParsedResponse() { try { var response = ThrowOriginalException.ParseResponse(ThrowOriginalException.GetResponse()); return(response); } catch (Exception ex) { Console.WriteLine(ex.Message); throw new CustomException("Custom exception was thrown.", ex); } }
private static void Main() { var response = ThrowOriginalException.GetParsedResponse(); Console.WriteLine(response.Length); }
private static string GetResponse() { var httpResponse = ThrowOriginalException.MakeHttpResponse(); return(httpResponse); }