Error Handling - Next.js 14 Course Tutorial #11

Опубликовано: 23 Февраль 2026
на канале: Code with Sloba
5,058
46

In this tutorial, you will see how we can handle errors in Next.js. You will learn to handle errors on a component, on a route and on the app level.

🧿 I discussed:

✔️ How error handling works in Nextjs
✔️ How to catch errors in Nextjs

Source code:   / codewithsloba  

************************************************************
Previous video:    • Loading UI - Next.js 14 Course Tutorial #10  
Next video:    • Nested Layout - Next.js 14 Course Tutorial...  
Full series:    • Full Next.js course  

************************************************************

0:00 Intro
0:22 Create error.js file
1:22 Throw new error
3:40 error.js in app folder

************************************************************

👉 Patreon:
✔️   / codewithsloba  


👉 Blog:
✔️https://codewithsloba.com/


👉 Linkedin:
✔️   / slobodan-gajic  


👉 Instagram:
✔️  / codewithsloba