Comments (2)
I'm currently experiencing this very issue.
Does WebError
really needs to be defined as sealed
?
Each web service handle errors in its own way, I don't think it makes sense to force a predefined structure.
Ok... we're losing control on MatchError
, but this lack of flexibility is really frustrating.
Another solution would be to create a "free text error", but I don't think it's safer than a run-time MatchError
.
from nozzle.
Closed in #24
from nozzle.
Related Issues (19)
- Provide a shapeless-based typeclass instance derivation (implicit macro) for JsonFormat[T] where T is a case class of > 22 params
- Provide a way to "soft commit" a route
- Add CaseEnum serialization support
- Strive for consistent, predictable, intuitive error generation
- Consider adding a default handler to map spray rejections to JSend HOT 5
- Config case class should be an object HOT 2
- Add support of Java 8 `java.time` classes
- Add https HOT 1
- [Marshalling] Decouple marshaller implementation from JSend
- [Controllers] eitherT interface enhancement HOT 1
- Allow customizing error status codes
- JSON Error serialization HOT 4
- [CORS] add the ability to customize `allowedHeaders`
- Remove statusCode from GenericError
- Boot timeout should be configurable
- Nozzle Server should optionally accept an external ActorSystem
- [Boot] bootTimeout should be configurable and default to 10 seconds
- No more embedded logging
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 nozzle.