diff --git a/.tests/Tests.Nano/Tests.Nano.csproj b/.tests/Tests.Nano/Tests.Nano.csproj index eacf33f..b83c76a 100644 --- a/.tests/Tests.Nano/Tests.Nano.csproj +++ b/.tests/Tests.Nano/Tests.Nano.csproj @@ -13,7 +13,7 @@ - + diff --git a/Nano.App/Api/BaseApi.cs b/Nano.App/Api/BaseApi.cs index 4da7453..0532b7a 100644 --- a/Nano.App/Api/BaseApi.cs +++ b/Nano.App/Api/BaseApi.cs @@ -780,6 +780,14 @@ private Exception GetInternalServerErrorException(string content) throw new NullReferenceException(nameof(error)); } + if (error.IsCoded) + { + var codeExceptions = error.Exceptions + .Select(x => new CodedException(x)); + + throw new AggregateException(codeExceptions); + } + if (error.IsTranslated) { var translationExceptions = error.Exceptions diff --git a/Nano.Data/Nano.Data.csproj b/Nano.Data/Nano.Data.csproj index 49832d8..dca982f 100644 --- a/Nano.Data/Nano.Data.csproj +++ b/Nano.Data/Nano.Data.csproj @@ -22,25 +22,24 @@ - - + - + - - - - - - - - - + + + + + + + + + - + diff --git a/Nano.Eventing/Nano.Eventing.csproj b/Nano.Eventing/Nano.Eventing.csproj index 526eb40..3abc09b 100644 --- a/Nano.Eventing/Nano.Eventing.csproj +++ b/Nano.Eventing/Nano.Eventing.csproj @@ -22,7 +22,7 @@ - + diff --git a/Nano.Logging/Nano.Logging.csproj b/Nano.Logging/Nano.Logging.csproj index b6a0900..7174853 100644 --- a/Nano.Logging/Nano.Logging.csproj +++ b/Nano.Logging/Nano.Logging.csproj @@ -23,7 +23,7 @@ - + diff --git a/Nano.Models/Nano.Models.csproj b/Nano.Models/Nano.Models.csproj index 42e219a..7cac5d8 100644 --- a/Nano.Models/Nano.Models.csproj +++ b/Nano.Models/Nano.Models.csproj @@ -23,8 +23,8 @@ - - + + diff --git a/Nano.Security/Nano.Security.csproj b/Nano.Security/Nano.Security.csproj index 7462daa..21ec629 100644 --- a/Nano.Security/Nano.Security.csproj +++ b/Nano.Security/Nano.Security.csproj @@ -23,7 +23,7 @@ - + diff --git a/Nano.Storage/Nano.Storage.csproj b/Nano.Storage/Nano.Storage.csproj index ca6ff58..1a96178 100644 --- a/Nano.Storage/Nano.Storage.csproj +++ b/Nano.Storage/Nano.Storage.csproj @@ -22,7 +22,7 @@ - + diff --git a/Nano.Web/Nano.Web.csproj b/Nano.Web/Nano.Web.csproj index a20f86b..5aacd7d 100644 --- a/Nano.Web/Nano.Web.csproj +++ b/Nano.Web/Nano.Web.csproj @@ -26,18 +26,18 @@ - + - - - - + + + + - - - + + + diff --git a/NanoCore.nuspec b/NanoCore.nuspec index 2a44191..f1576ef 100644 --- a/NanoCore.nuspec +++ b/NanoCore.nuspec @@ -2,7 +2,7 @@ NanoCore - 8.2.3 + 8.2.4 Nano Core Rapidly built and deploy rich .NET 8.0 applications. Configuration, Security, Logging, Data, Hosting, Docs, Localization, Versioning, Api, Error-Handling, and much more. The project is inspired by years of tedious repetitions, continuously re-writing similar code-snippets and libraries, to handle common functionality, not related to the business domain, such as logging, data persistence, message queuing, documentation, validation and similar. @@ -16,61 +16,62 @@ https://github.com/Nano-Core - - Updated DynamicExpression NuGet. + - Updated All NuGets. + - Added IRepository.GetFirstAsync(...) with default Ordering. + - Added Error.IsCoded and CodedException, to expose coded errors that the client can react on. - - + - + - + - + - + - + - + - - - - - - - - - - + + + + + + + + + + - + - + - - - - + + + + - - - + + +