aboutsummaryrefslogtreecommitdiff
path: root/include/openvic-dataloader/ParseError.hpp
blob: 9e4541ec35e8188b5ee3e9562b662ba1f44cdf6a (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;
   };

}