Last part of error handling

This commit is contained in:
2019-01-10 16:43:48 +01:00
parent 5f7139c481
commit c6d41bf024

View File

@ -13,10 +13,8 @@ namespace Exceptionhandling
try try
{ {
using(var streamreader = new StreamReader(@"c:\file.zip")) var api = new YouTubeApi();
{ var videos = api.GetVideos("nisse");
var content = streamreader.ReadToEnd();
}
} }
catch (Exception ex) catch (Exception ex)
{ {