| 137 | std::ostream& operator<<(std::ostream& os, const ParquetException& exception); |
| 138 | |
| 139 | class ParquetStatusException : public ParquetException { |
| 140 | public: |
| 141 | explicit ParquetStatusException(::arrow::Status status) |
| 142 | : ParquetException(status.ToString()), status_(std::move(status)) {} |
| 143 | |
| 144 | const ::arrow::Status& status() const { return status_; } |
| 145 | |
| 146 | private: |
| 147 | ::arrow::Status status_; |
| 148 | }; |
| 149 | |
| 150 | // This class exists for the purpose of detecting an invalid or corrupted file. |
| 151 | class ParquetInvalidOrCorruptedFileException : public ParquetStatusException { |
no outgoing calls
no test coverage detected