mirror of
https://github.com/Biarity/Sieve.git
synced 2025-07-28 05:03:22 +02:00
Added base exception type (#7)
This commit is contained in:
10
Sieve/Exceptions/SieveException.cs
Normal file
10
Sieve/Exceptions/SieveException.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sieve.Exceptions
|
||||
{
|
||||
public class SieveException : Exception
|
||||
{
|
||||
}
|
||||
}
|
@@ -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; }
|
||||
|
@@ -4,7 +4,7 @@ using System.Text;
|
||||
|
||||
namespace Sieve.Exceptions
|
||||
{
|
||||
public class SieveMethodNotFoundException : Exception
|
||||
public class SieveMethodNotFoundException : SieveException
|
||||
{
|
||||
public string MethodName { get; protected set; }
|
||||
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user