aboutsummaryrefslogtreecommitdiff
path: root/include/openvic-dataloader/ParseError.hpp
blob: f3ae287e116ef8228eb41709129543499229d9a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <string>

#include "openvic-dataloader/ParseData.hpp"

namespace ovdl {
   struct ParseError {
      const enum class Type : unsigned char {
         Recoverable,
         Fatal
      } type;
      const std::string message;
      const int error_value;
      const ParseData parse_data;
      const unsigned int start_line;
      const unsigned int start_column;
   };

}