mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-22 05:22:57 +01:00
Added base exception type (#7)
This commit is contained in:
parent
e83f647945
commit
af1fa00fb1
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)
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user