You're writing a custom exception class in PHP to handle specific types of errors in your application. Which built-in PHP class would you extend to achieve this?

  • Exception
  • Error
  • Throwable
  • CustomException (No built-in class)
To create a custom exception class in PHP, you extend the built-in Exception class. This allows you to handle specific types of errors in your application.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *