Last part of error handling
This commit is contained in:
@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user