PHP - Error and Exception Handling
Find the error in this PHP code:
class MyException extends Exception {
public function __construct($message) {
parent::__construct($message);
}
}
try {
throw new MyException();
} catch (MyException $e) {
echo $e->getMessage();
}