Skip to main content

Search Results for "custom exceptions"

We found 12 results for "custom exceptions".

Tutorial Free

Laravel Exceptions: How to Catch, Handle and Create Your Own

Quite often web-developers don't care enough about errors. If something goes wrong, you often see default Laravel texts like "Whoops, something went wrong" or, even worse, the exception code, which is not helpful at all to the visitor. So I decided to write a step-by-step article of how to handle errors in elegant way and present proper error information to the visitor.

Haven't found what you're looking for?

Our team is here to help. Ask us anything about Laravel development and we'll get back to you with personalized guidance.

Ask for Personal Help

We'll respond within 24 hours

Function available only for premium members.

Be as specific as possible so we can provide the best guidance.

Code Example monicahq/monica

monicahq/monica

Files in the example:

  • app/Exceptions/FileNotFoundException.php
  • app/Services/Account/Settings/DestroyAllDocuments.php
Code Example pterodactyl/panel

pterodactyl/panel

Files in the example:

  • app/Exceptions/Http/HttpForbiddenException.php
  • app/Http/Controllers/Api/Client/Servers/WebsocketController.php#L58
Code Example caneara/tipsea

caneara/tipsea

Files in the example:

  • app/Exceptions/TooManyRequestsException.php
  • app/Kernels/Exception.php

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.