comparison PalantirCppClient/HttpException.h @ 43:9be852ad33d2

rename for c
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Sep 2012 09:59:34 +0200
parents 3959d33612cc
children
comparison
equal deleted inserted replaced
42:ea48f38afe5f 43:9be852ad33d2
34 namespace Palantir 34 namespace Palantir
35 { 35 {
36 class HttpException 36 class HttpException
37 { 37 {
38 private: 38 private:
39 HttpStatus status_; 39 Palantir_HttpStatus status_;
40 std::string custom_; 40 std::string custom_;
41 41
42 public: 42 public:
43 static const char* GetDescription(HttpStatus status); 43 static const char* GetDescription(Palantir_HttpStatus status);
44 44
45 HttpException(const std::string& custom) 45 HttpException(const std::string& custom)
46 { 46 {
47 status_ = HttpStatus_None; 47 status_ = Palantir_HttpStatus_None;
48 custom_ = custom; 48 custom_ = custom;
49 } 49 }
50 50
51 HttpException(HttpStatus status) 51 HttpException(Palantir_HttpStatus status)
52 { 52 {
53 status_ = status; 53 status_ = status;
54 } 54 }
55 55
56 HttpStatus GetHttpStatus() const 56 Palantir_HttpStatus GetHttpStatus() const
57 { 57 {
58 return status_; 58 return status_;
59 } 59 }
60 60
61 const char* What() const; 61 const char* What() const;