HTTP request successes, but the data is not received completely.
| 85 | |
| 86 | // HTTP request successes, but the data is not received completely. |
| 87 | class S3PartialResponseError : public S3Exception { |
| 88 | public: |
| 89 | S3PartialResponseError(uint64_t expected, uint64_t received) |
| 90 | : expectedLength(expected), receivedLength(received) { |
| 91 | } |
| 92 | virtual ~S3PartialResponseError() { |
| 93 | } |
| 94 | virtual string getMessage() { |
| 95 | return "Response is not fully received. Expected: " + |
| 96 | std::to_string((unsigned long long)expectedLength) + |
| 97 | ", actual received: " + std::to_string((unsigned long long)receivedLength); |
| 98 | } |
| 99 | virtual string getType() { |
| 100 | return "S3PartialResponseError"; |
| 101 | } |
| 102 | |
| 103 | uint64_t expectedLength; |
| 104 | uint64_t receivedLength; |
| 105 | }; |
| 106 | |
| 107 | // User presses Ctrl + C or the transaction is aborted. |
| 108 | class S3QueryAbort : public S3Exception { |