Jump to content

Types of Exception?


suresh64633

Recommended Posts

As Mchl said, there are a number of existing exception types in PHP:

 

SPL Exceptions

  • BadFunctionCallException
  • BadMethodCallException
  • DomainException
  • InvalidArgumentException
  • LengthException
  • LogicException
  • OutOfBoundsException
  • OutOfRangeException
  • OverflowException
  • RangeException
  • RuntimeException
  • UnderflowException
  • UnexpectedValueException

 

Other Predefined Exceptions

  • Exception
  • ErrorException

 

And remember you can always create your own exception classes by extending one of the existing ones.

 

 

Link to comment
https://forums.phpfreaks.com/topic/179938-types-of-exception/#findComment-949251
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.