"; $errorMsg .= "
{$this->getFile()} : line {$this->getLine()}
"; $errorMsg .= "{$this->getMessage()}
"; $errorMsg .= "| file | line | function | class | ||
|---|---|---|---|---|---|
| {$trace['file']} | "; $errorMsg .= "{$trace['line']} | "; $errorMsg .= "{$trace['function']} | "; $errorMsg .= "{$trace['class']} | "; // $errorMsg .= "{$trace['type']} | "; // $errorMsg .= "
| ";
// $errorMsg .= "";
$errorMsg .= "
";
die($errorMsg);
}
/**
* Override __toString in parent
*/
public function __toString()
{
$this->errorMessage();
}
}