OOP Error Handling In PHP - Exceptions & Try Catch Finally Blocks - Full PHP 8 Tutorial @ProgramWithGio
OOP Error Handling In PHP - Exceptions & Try Catch Finally Blocks - Full PHP 8 Tutorial  @ProgramWithGio
Uploaded June 2021 | Updated November 2026, 3 hours ago
In the first section of the course, we covered error handling, in this lesson you will learn how to handle exceptions which are the OOP way of handling errors. You'll learn how to throw & catch exceptions, how to create custom exceptions. How to use exception handler, different types of exceptions & PHP's built-in errors, and so on.

SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
⭐ Become a Patreon: patreon.com/programwithgio
THANK YOU!

LESSON 2.20
Course Outline - github.com/ggelashvili/learnphptherightway-outline
Course Playlist - youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-

RESOURCES
Lesson 1.7 Float Data Type - youtu.be/d3c_OOD4Jzs
Lesson 1.28 Basic Error Handling - youtube.com/watch?v=rQntgj7yink
SPL Exceptions - php.net/manual/en/spl.exceptions.php
Global Exception Handler - php.net/manual/en/function.set-exception-handler.php
Error Hierarchy - php.net/manual/en/language.errors.php7.php

CHAPTERS
00:00 - What are exceptions
01:15 - Throwing exceptions
04:34 - Custom exceptions
07:15 - Catching exceptions (try/catch)
11:21 - Finally block & how return statements work from try, catch & finally blocks
14:12 - Global exception handler, error hierarchy & changes in error reporting in PHP 7 & PHP 8
17:50 - When to use exceptions
18:49 - Domain-specific exception class with static methods to throw specific exceptions
OOP Error Handling In PHP - Exceptions & Try Catch Finally Blocks - Full PHP 8 TutorialPHP Null Data Type - Full PHP 8 TutorialOpen Transaction Receipt Files - Build Expense Tracker App With PHP 8What is active record pattern & how Laravel implements it with Eloquent - Full PHP 8 TutorialHow To Work With Dates & Time Zones - Full PHP 8 TutorialGetting Started with Databases & Migrations in Laravel | Learn Laravel The Right WayAvoid This Common Mistake: Not Asking for Help When In NeedHow To Create CLI App & Commands - Full PHP 8 TutorialSimplify Your Views with Laravel Blade Components | Learn Laravel The Right WayRefactor to use Eloquent instead of Doctrine DBAL - Full PHP 8 TutorialValue Objects Practical Example - What is a Value Object? - Full PHP 8 TutorialDoctrine ORM Query Builder - Full PHP 8 Tutorial
Program With Gio |

OOP Error Handling In PHP - Exceptions & Try Catch Finally Blocks - Full PHP 8 Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER