std::string errorCodeToString()

in hessian2/codec.hpp [94:104]


  std::string errorCodeToString() const {
    switch (error_code_) {
      case ErrorCode::NO_DECODE_ERROR:
        return std::string();
      case ErrorCode::NOT_ENOUGH_BUFFER:
        return std::string("There is not enough buffer");
      case ErrorCode::UNEXPECTED_TYPE:
        return std::string("Unexpected type");
    }
    return std::string();
  }