Exakat\Reports\Devoops::ErrorMessages PHP Method

ErrorMessages() protected method

protected ErrorMessages ( )
    protected function ErrorMessages()
    {
        $css = new \Stdclass();
        $css->displayTitles = true;
        $css->titles = array('Message');
        $css->readOrder = $css->titles;
        $data = array();
        $res = $this->dump->query('SELECT fullcode FROM results WHERE analyzer="Structures/ErrorMessages"');
        while ($row = $res->fetchArray()) {
            $data[] = array('Message' => $row['fullcode']);
        }
        return $this->formatText(<<<TEXT
Error message when an error is reported in the code. Those messages will be read by whoever is triggering the error, and it has to be helpful. 

It is a good excercice to read the messages out of context, and try to understand what is about.

Error messages are spotted via die, exit or exception. 
TEXT
, 'textLead') . $this->formatSimpleTable($data, $css);
    }