Example #1
0
 public static function error(Exception $e)
 {
     $obj = new self();
     $obj->humanize();
     $obj->add('error', array('msg' => trim($e->getMessage()), 'code' => $e->getCode(), 'exception' => base64_encode(serialize($e))));
     return $obj;
 }