Last part of error handling
This commit is contained in:
@ -13,10 +13,8 @@ namespace Exceptionhandling
|
||||
|
||||
try
|
||||
{
|
||||
using(var streamreader = new StreamReader(@"c:\file.zip"))
|
||||
{
|
||||
var content = streamreader.ReadToEnd();
|
||||
}
|
||||
var api = new YouTubeApi();
|
||||
var videos = api.GetVideos("nisse");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user