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

Описание к видео OOP Error Handling In PHP - Exceptions & Try Catch Finally Blocks - Full PHP 8 Tutorial

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:   / programwithgio  
THANK YOU!

LESSON 2.20
Course Outline - https://github.com/ggelashvili/learnp...
Course Playlist -    • Learn PHP The Right Way - Full PHP Tu...  

RESOURCES
Lesson 1.7 Float Data Type -    • PHP Float Data Type - Full PHP 8 Tuto...  
Lesson 1.28 Basic Error Handling -    • PHP Error Handling & Error Handlers -...  
SPL Exceptions - https://www.php.net/manual/en/spl.exc...
Global Exception Handler - https://www.php.net/manual/en/functio...
Error Hierarchy - https://www.php.net/manual/en/languag...

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

Комментарии

Информация по комментариям в разработке