"; $errorMsg .= "

Alopeyk Exception:

"; $errorMsg .= "

Error on:

"; $errorMsg .= "

{$this->getFile()} : line {$this->getLine()}

"; $errorMsg .= "
"; $errorMsg .= "

Message:

"; $errorMsg .= "

{$this->getMessage()}

"; $errorMsg .= "

Stack Traces

"; $errorMsg .= ""; $errorMsg .= ""; $errorMsg .= ""; foreach ($this->getTrace() as $trace) { $errorMsg .= ""; $errorMsg .= ""; $errorMsg .= ""; $errorMsg .= ""; $errorMsg .= ""; // $errorMsg .= ""; // $errorMsg .= ""; // $errorMsg .= ""; $errorMsg .= ""; } $errorMsg .= ""; $errorMsg .= "
file line function class
{$trace['file']}{$trace['line']}{$trace['function']}{$trace['class']}{$trace['type']}
    "; // foreach ($trace['args'] as $index => $arg) { // $errorMsg .= "
  1. $arg
  2. "; // } // $errorMsg .= "
"; $errorMsg .= ""; echo "
";
        die($errorMsg);
    }

    /**
     * Override __toString in parent
     */
    public function __toString()
    {
        $this->errorMessage();
    }
}