public function execute() { $this->_response_method = \Wave\Exception::getResponseMethod(); $this->error['code'] = $this->_data['exception']->getCode(); $this->error['message'] = $this->_data['exception']->getMessage(); if ($this->error['code'] == 0) { $this->_status = \Wave\Response::STATUS_EXCEPTION; } else { $this->_status = $this->error['code']; } return $this->respond(); }