- Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17, 7.0.0 - 7.0.2
- Fatal error: Cannot override final method Exception::getMessage() in /in/kE63J on line 13
Process exited with code 255.
<?php
function handler($e){
echo $e->getMessage();
}
class AcessDeniedException extends Exception{
public function getMessage(){
parent::getMessage();
echo 'This is my exception';
}
}
set_exception_handler (handler);
if(false){
throw new AcessDeniedException('Access DENIED!!!!!' , 1);
}