/** * add error message to debug log * * @return AError */ public function toDebug() { ADebug::error($this->error_descriptions[$this->code], $this->code, $this->msg); return $this; }