Forum Moderators: coopster
class myException extends Exception
{
function __toString()
{
return '<table border><tr><td><strong>Exception '. $this->getCode()
. '</strong>: '. $this->getMessage().'<br />'.' in '
. $this->getFile(). ' on line '. $this->getLine()
. '</td></tr></table><br />';
}
}try
{
throw new myException('A terrible error has occurred', 42);
}
catch (myException $m)
{
echo $m;
}
My question is, where does the object $m come from? I don't see how or when it is created..