Welcome Guest, Not a member yet? Register   Sign In
CI4: Handling model errors
#8

(08-22-2023, 01:06 AM)kenjis Wrote: @joho See https://www.php.net/manual/en/class.typeerror.php
TypeError extends Error, not Exception.

Yes, that's what I wrote in my follow-up post Big Grin 

It makes it hard to write a "catch-all" handler though, when the library/framework code throws different types of errors/exceptions depending on what happens.

-joho
Reply


Messages In This Thread
CI4: Handling model errors - by rmilecki - 04-17-2020, 03:06 AM
RE: CI4: Handling model errors - by InsiteFX - 04-18-2020, 03:26 AM
RE: CI4: Handling model errors - by joho - 08-21-2023, 01:27 AM
RE: CI4: Handling model errors - by kenjis - 08-21-2023, 06:42 PM
RE: CI4: Handling model errors - by InsiteFX - 08-21-2023, 08:48 PM
RE: CI4: Handling model errors - by joho - 08-22-2023, 12:01 AM
RE: CI4: Handling model errors - by kenjis - 08-22-2023, 01:06 AM
RE: CI4: Handling model errors - by joho - 08-22-2023, 01:18 AM
RE: CI4: Handling model errors - by kenjis - 08-22-2023, 01:35 AM
RE: CI4: Handling model errors - by joho - 08-22-2023, 02:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB