This class exists for the purpose of detecting an invalid or corrupted file.
| 149 | |
| 150 | // This class exists for the purpose of detecting an invalid or corrupted file. |
| 151 | class ParquetInvalidOrCorruptedFileException : public ParquetStatusException { |
| 152 | public: |
| 153 | ParquetInvalidOrCorruptedFileException(const ParquetInvalidOrCorruptedFileException&) = |
| 154 | default; |
| 155 | |
| 156 | template <typename Arg, |
| 157 | typename std::enable_if< |
| 158 | !std::is_base_of<ParquetInvalidOrCorruptedFileException, Arg>::value, |
| 159 | int>::type = 0, |
| 160 | typename... Args> |
| 161 | explicit ParquetInvalidOrCorruptedFileException(Arg arg, Args&&... args) |
| 162 | : ParquetStatusException(::arrow::Status::Invalid(std::forward<Arg>(arg), |
| 163 | std::forward<Args>(args)...)) {} |
| 164 | }; |
| 165 | |
| 166 | template <typename StatusReturnBlock> |
| 167 | void ThrowNotOk(StatusReturnBlock&& b) { |
no outgoing calls
no test coverage detected