Chapter
Creating Custom Exceptions
From ComputerScienceOne by Dr Chris Bourke
Concepts
- How can you create and handle custom exception classes in PHP?
"As of PHP 5.3.0 it is possible to define custom exceptions by extending the Exception class. To do this, you need to declare a new class. We cover classes and objects in Chapter 45. For now, we prese