about summary refs log tree commit diff stats
path: root/src/codes.cpp
blob: 560194c5ef8ed09cb30335f34145671d275a99ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "codes.h"
#include <sstream>

namespace twitter {

  const char* invalid_response::WHAT_TEXT = "Invalid response data received from Twitter";
  const char* connection_error::WHAT_TEXT = "Error connecting to Twitter";

  std::string unknown_error::generateMessage(int response_code)
  {
    std::ostringstream msgbuilder;
    msgbuilder << "Unknown error (HTTP " << response_code << ")";

    return msgbuilder.str();
  }

};