NzbDroneException now has inner exception

This commit is contained in:
Mark McDowall 2013-09-10 22:55:18 -07:00
parent 18fe8ecfea
commit e10a5ca213
2 changed files with 12 additions and 1 deletions

View File

@ -15,5 +15,16 @@ namespace NzbDrone.Common.Exceptions
{ {
} }
protected NzbDroneException(string message, Exception innerException, params object[] args)
: base(string.Format(message, args), innerException)
{
}
protected NzbDroneException(string message, Exception innerException)
: base(message, innerException)
{
}
} }
} }

View File

@ -6,7 +6,7 @@ using NzbDrone.Common.Exceptions;
namespace NzbDrone.Core.Configuration namespace NzbDrone.Core.Configuration
{ {
public class InvalidConfigFileException : Exception public class InvalidConfigFileException : NzbDroneException
{ {
public InvalidConfigFileException(string message, Exception innerException) : base(message, innerException) public InvalidConfigFileException(string message, Exception innerException) : base(message, innerException)
{ {