suresh64633 Posted November 2, 2009 Share Posted November 2, 2009 Hi, Do PHP have Exception Types? If yes, what are they? Thanks!! Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
suresh64633 Posted November 4, 2009 Author Share Posted November 4, 2009 Thanks salathe It is really usefull. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.