Coder Social home page Coder Social logo

Comments (5)

devinivy avatar devinivy commented on September 2, 2024 1

@nelsonic you might find this section of the docs interesting https://github.com/hapijs/hapi/blob/master/API.md#error-transformation

from hapijs.com.

hueniverse avatar hueniverse commented on September 2, 2024

You should!

from hapijs.com.

KyleAMathews avatar KyleAMathews commented on September 2, 2024

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.

nelsonic avatar nelsonic commented on September 2, 2024

@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.

nelsonic avatar nelsonic commented on September 2, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.