/**
 * By default, all errors are logged through here. Hence to see any error; we have to expicilty request for it
 * This function helps to do the real error logging into the DErrorHandler class.
 * @see DErrorHandler
*/
function _DBTSRSetErrors($error, $errorString, $filename, $line, $symbols)
{
    //check to make sure error isnt fatal
    $tag = DArray::getInstance(explode(SLASH, $filename))->last() . " ({$line}) ";
    DErrorHandler::addError("{$tag} : <b>{$errorString}</b>", $tag);
}