Comments (5)
@nelsonic you might find this section of the docs interesting https://github.com/hapijs/hapi/blob/master/API.md#error-transformation
from hapijs.com.
You should!
from hapijs.com.
I'd be happy to once I've figured it out myself :-)
On Wed, Oct 29, 2014, 3:49 PM Eran Hammer [email protected] wrote:
You should!
—
Reply to this email directly or view it on GitHub
#62 (comment).
from hapijs.com.
@KyleAMathews did you ever figure this out?
I ask because we were trying to learn how to do error handling the "right" way in Hapi but weren't able to find a tutorial ... 😞
We ended up crafting our own hapi plugin to handle errors: https://github.com/dwyl/hapi-error
but still would love to know if there's an official way of handling errors in Hapi apps ...
from hapijs.com.
@devinivy, yeah, the API docs for Error response and Error transformation are good (we used them when deriving our preResponse
plugin) but we were searching for more of an Error Handling Guide i.e. what are the "Best Practices" in Hapi Web Apps? preferably with a "real world" example ... I guess most people are keeping their apps simple and just rendering an "error" view if HTML was requested or returning the Boom
(JSON) error... not much to it, but could be clearer to beginners?
from hapijs.com.
Related Issues (20)
- Add prettier to the project HOT 7
- Add mention about github's token scope
- rename or remove host:'localhost' HOT 5
- Add mention in update page about release information
- Update slack invite link
- Remove mention of the gitter channel
- Remove Gitter/IRC mentions in GETTING_STARTED other than english HOT 7
- The "Getting started" script should follow coding conventions HOT 5
- Homepage was 500ing HOT 8
- Show api docs for v17 HOT 1
- API page display 17.8.5 twice instead of latest v17 and v16 HOT 2
- Categorize resources by hapi version
- Fix github rate limit error 500
- Remove community page HOT 2
- Side menu not displaying properly on API Page
- Bell module summary display is broken on API page HOT 1
- Mistake in route query docs HOT 1
- Update tutorials to use scoped packages HOT 2
- Current version on homepage is out of date HOT 3
- The styleguide page is broken HOT 1
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 hapijs.com.