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)

View File

@ -1,6 +1,6 @@
### 1. Pack:
```
dotnet pack Sieve.csproj -c Release -o . /p:PackageVersion=1.3.9
dotnet pack Sieve.csproj -c Release -o . /p:PackageVersion=1.3.92
```
Don't forget to change version since nuget packages are immutable (add one to the nuget current).
@ -13,7 +13,7 @@ Also don't forget updaing `releaseNotes` in nuspec.
### 3. Publish:
```
nuget push Sieve.1.3.9.nupkg API_KEY -Source https://api.nuget.org/v3/index.json
nuget push Sieve.1.3.92.nupkg API_KEY -Source https://api.nuget.org/v3/index.json
```
Replace API_KEY with one you get from nuget's website.
Also don't forget to replace corresponding version.