Exception when no valid format is found for a file
| 206 | |
| 207 | /// Exception when no valid format is found for a file |
| 208 | class InvalidFormat : public FileExceptionBase |
| 209 | { |
| 210 | public: |
| 211 | /** |
| 212 | * @brief Constructor |
| 213 | * |
| 214 | * @param message A message to accompany the exception |
| 215 | * @param file_path (optional) The input file being processed |
| 216 | */ |
| 217 | InvalidFormat(std::string message, std::string file_path="") |
| 218 | : FileExceptionBase(message, file_path) { } |
| 219 | virtual ~InvalidFormat() noexcept {} |
| 220 | }; |
| 221 | |
| 222 | /// Exception for invalid JSON |
| 223 | class InvalidJSON : public FileExceptionBase |