mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-22 13:32:33 +01:00
Exceptions only thrown if configuration allows (#11)
This commit is contained in:
parent
67606e281b
commit
24ba14e49f
@ -186,11 +186,18 @@ namespace Sieve.Services
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
if (_options.Value.ThrowExceptions)
|
||||||
{
|
{
|
||||||
if (ex is SieveException)
|
if (ex is SieveException)
|
||||||
throw;
|
throw;
|
||||||
throw new SieveException(ex.Message, ex);
|
throw new SieveException(ex.Message, ex);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -236,11 +243,18 @@ namespace Sieve.Services
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
if (_options.Value.ThrowExceptions)
|
||||||
{
|
{
|
||||||
if (ex is SieveException)
|
if (ex is SieveException)
|
||||||
throw;
|
throw;
|
||||||
throw new SieveException(ex.Message, ex);
|
throw new SieveException(ex.Message, ex);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -269,11 +283,18 @@ namespace Sieve.Services
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
if (_options.Value.ThrowExceptions)
|
||||||
{
|
{
|
||||||
if (ex is SieveException)
|
if (ex is SieveException)
|
||||||
throw;
|
throw;
|
||||||
throw new SieveException(ex.Message, ex);
|
throw new SieveException(ex.Message, ex);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>Sieve</id>
|
<id>Sieve</id>
|
||||||
<version>1.3.91</version>
|
<version>1.3.92</version>
|
||||||
<title>Sieve</title>
|
<title>Sieve</title>
|
||||||
<authors>Biarity</authors>
|
<authors>Biarity</authors>
|
||||||
<owners>Biarity</owners>
|
<owners>Biarity</owners>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<description>
|
<description>
|
||||||
Sieve is a simple, clean, and extensible framework for .NET Core that adds sorting, filtering, and pagination functionality out of the box. Most common use case would be for serving ASP.NET Core GET queries. Documentation available on GitHub: https://github.com/Biarity/Sieve/
|
Sieve is a simple, clean, and extensible framework for .NET Core that adds sorting, filtering, and pagination functionality out of the box. Most common use case would be for serving ASP.NET Core GET queries. Documentation available on GitHub: https://github.com/Biarity/Sieve/
|
||||||
</description>
|
</description>
|
||||||
<releaseNotes>Custom method case-insensitivity, new custom exceptions</releaseNotes>
|
<releaseNotes>Base exception type, max pages feature</releaseNotes>
|
||||||
<copyright>Copyright 2018</copyright>
|
<copyright>Copyright 2018</copyright>
|
||||||
<tags>aspnetcore filter sort page paginate sieve search</tags>
|
<tags>aspnetcore filter sort page paginate sieve search</tags>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
Loading…
Reference in New Issue
Block a user