suresh64633 Posted November 2, 2009 Share Posted November 2, 2009 Hi, Do PHP have Exception Types? If yes, what are they? Thanks!! Link to comment https://forums.phpfreaks.com/topic/179938-types-of-exception/ Share on other sites More sharing options...
Mchl Posted November 2, 2009 Share Posted November 2, 2009 Whatever you wish. http://www.php.net/manual/en/language.exceptions.extending.php Some predefined are described here http://www.php.net/~helly/php/ext/spl/classException.html Link to comment https://forums.phpfreaks.com/topic/179938-types-of-exception/#findComment-949199 Share on other sites More sharing options...
salathe Posted November 2, 2009 Share Posted November 2, 2009 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 More sharing options...
suresh64633 Posted November 4, 2009 Author Share Posted November 4, 2009 Thanks salathe It is really usefull. Link to comment https://forums.phpfreaks.com/topic/179938-types-of-exception/#findComment-950817 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.