Тёмный

Laravel: The BEST way to handle exceptions 

Przemysław Przyłucki
Подписаться 6 тыс.
Просмотров 17 тыс.
50% 1

Hi guys!
In this episode we'll talk about exceptions and how we can make our life easier by utilizing custom exceptions

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@mayurmali9761
@mayurmali9761 4 дня назад
Does this code handles databse execption or any other execption rather than custom execption?
@julendominadas4040
@julendominadas4040 3 месяца назад
i have never worked with any php framework before. Its funny to see that back when i started learning php i designed a request handler that seems pretty similar to this piece of laravel.
@JohnSmithhh
@JohnSmithhh 7 месяцев назад
BEST video on the subject! Thanks for the time saved!
@okhaeadeleye2386
@okhaeadeleye2386 Год назад
Thank you. Short and sweet.
@grzesiekb9142
@grzesiekb9142 Год назад
Dobra robota, człowiek zawsze się czegoś dowie od bardziej doświadczonych ludzi 😊. Zawsze uzywałem try-catch…
@MadukaJayalath
@MadukaJayalath Год назад
The sound is bit low but great content!
@gazorbpazorbian
@gazorbpazorbian Год назад
this video is really great!
@saaslaravel
@saaslaravel Год назад
Thank you so much!
@thyagobrasileiro3784
@thyagobrasileiro3784 8 месяцев назад
Can you help me, the register function is not been called on Handle.php. I search and i found nothing about. I put a dd but never go there.
@AbderrahmanFodili
@AbderrahmanFodili 6 месяцев назад
Amazing stuff. I did sth weird to handle this . I added a helper method that returned an array with the key being the"Exception::class" and the value being either an array or a closure that returns an array as well this array always has a code and a message . this way I managed to also handle Laravel's own exceptions but your way of doing it is the Laravel way through the register method
@kareemlateefyomi8690
@kareemlateefyomi8690 Год назад
After registering the custom exception in register method of exception handler, the exception keeps returning the default laravel server error
@DougLopes
@DougLopes 7 месяцев назад
I love your channel and content, but its almost impossible remember your channel name when i want rewatch some video as a brazillian, have you considered rename the channel for something more acessible since your content is global?
@abdulsalamamtech
@abdulsalamamtech 6 месяцев назад
That's a good notice. I also find it difficult to pronoun or type.
@zachariascreutznacher3093
@zachariascreutznacher3093 Год назад
Really like your videos, very good content!
@dmitriykret8938
@dmitriykret8938 Год назад
👍
@alexz75515
@alexz75515 Год назад
Although I like this way of structuring exceptions, with multiple static returns per class. Clean and short. I found few minor caveats: - in tests you may need to target exception code or message in addition to class name to assert the exact method thrown. - same thing in Laravel exception handler, if you need to target particular static method.
@saaslaravel
@saaslaravel Год назад
That's very true. There is a nice solution to it though! Video about it is in the pipeline ;)
@youtube-youtube721
@youtube-youtube721 Год назад
When do you release the video you mentioned above?
@saaslaravel
@saaslaravel Год назад
​@@youtube-youtube721next week 😁
@stefangadjev1310
@stefangadjev1310 Год назад
Bro, thats insanely good idea.
@NedumEze
@NedumEze Год назад
Great idea. But, you didn't consider that some of your audience may not be any where as good as you, and therefore simplify more and slowly. Still, thank you very much. I may not be able to replicate what you've done!
Далее
Провал со стеклянным хлебом…
00:41
iPhone 16 & beats 📦
00:30
Просмотров 64 тыс.
What is Span in C# and why you should be using it
15:15
WOW! Laravel's pipeline pattern is AWESOME
20:39
Просмотров 13 тыс.
Laravel vs Rails for Javascript developers
19:50
Просмотров 3,4 тыс.
Laravel's secret weapon: macros (watch me code)
23:46
8 Design Patterns | Prime Reacts
22:10
Просмотров 418 тыс.
DHH discusses SQLite (and Stoicism)
54:00
Просмотров 79 тыс.
Laravel SPA Authentication - setup and common mistakes
16:55
Провал со стеклянным хлебом…
00:41