I'm having problems with my own exception class: IOExeption
. I want it to have another output then the normal exception class but in spite of the code below, its output is still the same.
What am I doing wrong ?
class IOExeption extends Exception
{
public function __toString()
{
$string = '<h1 class="text-warning text-center">';
$string .= $this->getMessage();
$string .= '</h1>';
return $string;
}
}