Removed the LastFmApiException class, it was a terrible idea

This commit is contained in:
Rikki Tooley 2013-06-15 13:57:20 +01:00
parent ea0142d269
commit 40774bcf6a
3 changed files with 1 additions and 29 deletions

View File

@ -30,21 +30,9 @@ private static void Main(string[] args)
{
foreach (var ex in agg.InnerExceptions)
{
System.Console.WriteLine("\n====================\n");
if (ex is LastFmApiException)
{
var lex = ex as LastFmApiException;
System.Console.WriteLine("LastFmApiException thrown:\n {0}\n {1}",
lex.Error.GetApiName(),
lex.StackTrace);
}
else
{
System.Console.WriteLine("Exception thrown:\n {0}\n {1}",
System.Console.WriteLine("Exception thrown:\n {0}\n {1}",
ex.Message,
ex.StackTrace);
}
System.Console.WriteLine("\n====================\n");
}
}

View File

@ -1,15 +0,0 @@
using System;
using IF.Lastfm.Core.Api.Enums;
namespace IF.Lastfm.Core.Api.Helpers
{
public class LastFmApiException : Exception
{
public LastFmApiError Error { get; set; }
public LastFmApiException(LastFmApiError error)
{
Error = error;
}
}
}

View File

@ -59,7 +59,6 @@
<Compile Include="ILastFm.cs" />
<Compile Include="LastFm.cs" />
<Compile Include="Api\Enums\LastFmApiError.cs" />
<Compile Include="Api\Helpers\LastFmApiException.cs" />
<Compile Include="Objects\Album.cs" />
<Compile Include="Objects\Artist.cs" />
<Compile Include="Objects\BuyLink.cs" />