about summary refs log tree commit diff stats
path: root/src/codes.cpp
blob: 7805c7a51818dc45f12f2720db544cfe14e23dd4 (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();
  }

};