Support the ongoing development of Laravel.io →
Security Architecture
Last updated 1 year ago.
0

when you throw and exception without a try catch block laravel will catch it and handle it. you should use it inside a try catch

try{
     // geocode
     $result = ///
    
     if (!$result) {
          throw new MyException('failed');
     }


catch(MyException $e){
     
}
0

Sign in to participate in this thread!

Eventy

Your banner here too?

notflip notflip Joined 2 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.