diff options
-rw-r--r-- | forstio/codec/proto_kel.h | 4 | ||||
-rw-r--r-- | forstio/core/error.h | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/forstio/codec/proto_kel.h b/forstio/codec/proto_kel.h index c28f7d6..3b4ebac 100644 --- a/forstio/codec/proto_kel.h +++ b/forstio/codec/proto_kel.h @@ -30,11 +30,11 @@ class codec<Schema, encode::ProtoKel> { private: public: error_or<data<Schema, encode::Native>> decode(const data<Schema, encode::ProtoKel>& encoded){ - return make_error<err::critical>(); + return make_error<err::not_implemented>(); } error_or<data<Schema, encode::ProtoKel>> encode(const data<Schema, encode::Native>& native){ - return make_error<err::critical>(); + return make_error<err::not_implemented>(); } }; } diff --git a/forstio/core/error.h b/forstio/core/error.h index 9708a07..3d242b9 100644 --- a/forstio/core/error.h +++ b/forstio/core/error.h @@ -149,6 +149,11 @@ struct not_supported { static constexpr std::string_view description = "Not supported"; static constexpr bool is_critical = false; }; + +struct not_implemented { + static constexpr std::string_view description = "Not implemented"; + static constexpr bool is_critical = true; +}; } /** |