Added base exception type (#7)

This commit is contained in:
Biarity
2018-02-15 18:40:35 +10:00
parent e83f647945
commit af1fa00fb1
5 changed files with 14 additions and 5 deletions

View File

@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Sieve.Exceptions
{
public class SieveException : Exception
{
}
}

View File

@@ -4,7 +4,7 @@ using System.Text;
namespace Sieve.Exceptions
{
public class SieveIncompatibleMethodException : Exception
public class SieveIncompatibleMethodException : SieveException
{
public string MethodName { get; protected set; }
public Type ExpectedType { get; protected set; }

View File

@@ -4,7 +4,7 @@ using System.Text;
namespace Sieve.Exceptions
{
public class SieveMethodNotFoundException : Exception
public class SieveMethodNotFoundException : SieveException
{
public string MethodName { get; protected set; }

View File

@@ -115,7 +115,6 @@ namespace Sieve.Services
converter.ConvertFrom(filterTerm.Value) :
Convert.ChangeType(filterTerm.Value, property.PropertyType));
dynamic propertyValue = Expression.PropertyOrField(parameter, property.Name);
if (filterTerm.OperatorIsCaseInsensitive)