| 148 | }; |
| 149 | |
| 150 | class S3RuntimeError : public S3Exception { |
| 151 | public: |
| 152 | S3RuntimeError(const string& msg) : message(msg) { |
| 153 | } |
| 154 | virtual ~S3RuntimeError() { |
| 155 | } |
| 156 | virtual string getMessage() { |
| 157 | return "Unexpected error: " + message; |
| 158 | } |
| 159 | |
| 160 | virtual string getType() { |
| 161 | return "S3RuntimeError"; |
| 162 | } |
| 163 | |
| 164 | string message; |
| 165 | }; |
| 166 | |
| 167 | class S3ConfigError : public S3Exception { |
| 168 | public: |