aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-dataloader/detail/BufferError.hpp
blob: 1fbb0f45c7a05d992e71a6f56640d7401b18e04b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <cstdint>

namespace ovdl::detail {
   enum class buffer_error : std::uint8_t {
      success,
      /// An internal OS error, such as failure to read from the file.
      os_error,
      /// The file was not found.
      file_not_found,
      /// The file cannot be opened.
      permission_denied,
      /// The buffer failed to handle the data
      buffer_is_null
   };
}