Server Side Development with Node.js and Koa.js Quick Start Guide by Olayinka Omole
Author:Olayinka Omole [Olayinka Omole]
Language: eng
Format: epub
Tags: COM060080 - COMPUTERS / Web / General, COM051260 - COMPUTERS / Programming Languages / JavaScript, COM051390 - COMPUTERS / Programming / Open Source
Publisher: Packt
Published: 2018-12-04T07:20:47+00:00
Handling Errors in Koa
Error handling describes how your application responds to errors that occur in your application. It is an important part of software development; hence, developers spend a lot of time trying to handle errors properly. It is important to note that these errors may either be asynchronous or synchronous. Proper error handling by developers makes use of their applications more seamless.
Koa's use of asynchronous functions makes error handling easier than it is in other Node frameworks, which implement callbacks.
In this chapter, we will learn about error handling in Koa and how we can take advantage of the tooling in Koa for proper error handling. Some of the things we will learn in this chapter include the following:
Catching errors in Koa
The error event and listener
Throwing HTTP errors
Writing error handlers
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7799)
Grails in Action by Glen Smith Peter Ledbrook(7712)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6433)
Kotlin in Action by Dmitry Jemerov(5080)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3905)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3343)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(3097)
Mastering Bitcoin: Programming the Open Blockchain by Andreas M. Antonopoulos(2884)
The Art Of Deception by Kevin Mitnick(2619)
Drugs Unlimited by Mike Power(2476)
The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution by Walter Isaacson(2413)
A Blueprint for Production-Ready Web Applications: Leverage industry best practices to create complete web apps with Python, TypeScript, and AWS by Dr. Philip Jones(2352)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2317)
Writing for the Web: Creating Compelling Web Content Using Words, Pictures and Sound (Eva Spring's Library) by Lynda Felder(2273)
SEO 2018: Learn search engine optimization with smart internet marketing strategies by Adam Clarke(2199)
JavaScript by Example by S Dani Akash(2147)
DarkMarket by Misha Glenny(2091)
Wireless Hacking 101 by Karina Astudillo(2087)
Hands-On Cybersecurity with Blockchain by Rajneesh Gupta(2052)
