LeviLamina
Loading...
Searching...
No Matches
SerializationError.h
1#pragma once
2
3#include <cstddef>
4#include <stdexcept>
5
6#include "ll/api/Expected.h"
7
8namespace ll::reflection {
9LLNDAPI Unexpected makeSerMemberError(std::string_view name, Error& err) noexcept;
10LLNDAPI Unexpected makeSerIndexError(std::size_t idx, Error& err) noexcept;
11LLNDAPI Unexpected makeSerKeyError(std::string_view key, Error& err) noexcept;
12
13LLNDAPI Unexpected makeDeserStringTypeError() noexcept;
14LLNDAPI Unexpected makeDeserArrayTypeError() noexcept;
15LLNDAPI Unexpected makeDeserObjectTypeError() noexcept;
16LLNDAPI Unexpected makeDeserArraySizeError(std::size_t expectedSize) noexcept;
17LLNDAPI Unexpected makeDeserMissingRequiredFieldError(std::string_view fieldName) noexcept;
18} // namespace ll::reflection