Beispiel #1
0
 public function printTrace()
 {
     $header = Html::tag('div', $this->exception . ' at ' . Hash::get($_SERVER, 'REQUEST_URI'), ['class' => 'head message']);
     $message = Html::tag('h2', "Record not found.", ['class' => 'message']);
     $debug = Html::tag('div', $this->fullCallerString, ['class' => 'debug']);
     echo Html::tag('div', $header . $message . $debug, ['class' => 'exception']);
 }
Beispiel #2
0
 public function printTrace()
 {
     $header = Html::tag('div', $this->exception . ' at ' . Hash::get($_SERVER, 'REQUEST_URI'), ['class' => 'head message']);
     $message = Html::tag('h2', "'{$this->calledWithArgs}' not a valid argument for '{$this->methodWhoCall}'", ['class' => 'message']);
     $debug = Html::tag('div', $this->fullCallerString, ['class' => 'debug']);
     echo Html::tag('div', $header . $message . $debug, ['class' => 'exception']);
 }