Comments (3)
We should unify the exception in RESTier. That is to say if LINQ expression or EF throws an exception. RESTier should wrap it and throw proper exception or return correct status code instead of just leaking the exception to end user.
As an example, #47 shows a duration-related exception thrown by EF. In this case, we should catch it and return 4XX bad request instead of return 500 internal server error. This is a client request problem not service issue.
from restier.
Part of the work mentioned is already done by ec3dc8a
from restier.
Related pull request #243
from restier.
Related Issues (20)
- Repo discussions HOT 1
- DbContext access for ControllerBase HOT 2
- Hardcoded restriction on `Microsoft.Extensions.DependencyInjection` causes a build failure to upgrade projects to .NET6. HOT 1
- .NET6 Roadmap HOT 1
- Some unit tests succeed individually but fail as part of a platform test run HOT 2
- Dates in $filter parsed as DateTime with DateTimeKind.Unspecified
- `dataModificationItem.OriginalValues` doesn't get filled HOT 1
- Post operation of creating user with Trips failing HOT 2
- Batch requests are still failing on .NET Core 3.1 + HOT 2
- .NET Core 3.1, .NET 5, & .NET 6 support now in Restier RC7! HOT 3
- ComplexTypes broken on ASP.NET Core in RC7
- SaveChange stopped working after upgrading to 1.0.0-rc8.20220714.1 from 1.0.0-rc6.20210412.2 HOT 3
- [2.0] Adding ` [AllowAnonymous]` does not allow Anonymous requests HOT 1
- Using `MaxTop` doesn't change the limit for `Top` HOT 2
- Restier Swagger support for AspNetCore HOT 44
- How to override BaseAddressFactory to replace @odata.context uri? HOT 4
- Restier 1.0 Has Finally Shipped! HOT 5
- MaxTop setting not being considered HOT 1
- Restier pattern for AsNoTracking on get/read HOT 6
- Update Documentation HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restier.