Chapter Quiz: Advanced Error Handling & Resiliency

Mastery Assessment: Error Handling

Complete this assessment with 100% score to master this chapter.

01How many arguments does an Express error-handling middleware function have?

02What is an 'Operational Error' in the context of Node.js applications?

03Why is it dangerous to simply call next(err) in an async handler without a try/catch in Express 4?

04What is the purpose of Error.captureStackTrace(this, this.constructor) in a custom Error class?