public function __construct($data)
 {
     parent::__construct($data);
     if (isset($data['trace'])) {
         $this->trace = $data['trace'];
     }
 }
 /**
  * @param ExceptionWrapper $exceptionWrapper
  *
  * @return array
  */
 protected function convertToArray(ExceptionWrapper $exceptionWrapper)
 {
     return array('id' => $exceptionWrapper->getId(), 'category' => $exceptionWrapper->getCategory(), 'code' => $exceptionWrapper->getCode(), 'message' => $exceptionWrapper->getMessage(), 'info' => $exceptionWrapper->getInfo(), 'errors' => $exceptionWrapper->getErrors());
 }
 /**
  * @param ExceptionWrapper $exceptionWrapper
  *
  * @return array
  */
 protected function convertToArray(ExceptionWrapper $exceptionWrapper)
 {
     return ['code' => $exceptionWrapper->getCode(), 'message' => $exceptionWrapper->getMessage(), 'errors' => $exceptionWrapper->getErrors()];
 }