Lines Matching full:error
27 std::optional<Metadata::Error> Metadata::ValidateSize(const std::string_view &value) const in ValidateSize()
32 return Error("Unsigned integer value expected", Error::Type::INVALID_VALUE); in ValidateSize()
37 return Error("Value is out of range", Error::Type::INVALID_VALUE); in ValidateSize()
112 static Expected<T, Metadata::Error> ConvertFromString(const std::string_view &value) in ConvertFromString()
120 …return Unexpected(Metadata::Error("Excepted integer literal", Metadata::Error::Type::INVALID_VALUE… in ConvertFromString()
125 … return Unexpected(Metadata::Error("Value is out of range", Metadata::Error::Type::INVALID_VALUE)); in ConvertFromString()
132 static Expected<ScalarValue, Metadata::Error> CreatePrimitiveValue(const std::string_view &value, in CreatePrimitiveValue()
137 return Unexpected(res.Error()); in CreatePrimitiveValue()
142 … return Unexpected(Metadata::Error("Value is out of range", Metadata::Error::Type::INVALID_VALUE)); in CreatePrimitiveValue()
148 static Expected<ScalarValue, Metadata::Error> CreateValue( in CreateValue()
201 … return Unexpected(Metadata::Error("Unknown annotation id", Metadata::Error::Type::INVALID_VALUE));
215 std::optional<Metadata::Error> AnnotationMetadata::AnnotationElementBuilder::AddValue( in AddValue()
229 return res.Error(); in AddValue()
237 std::optional<Metadata::Error> AnnotationMetadata::Store(const std::string_view &attribute) in Store()
240 return Error(std::string("Unexpected attribute '").append(attribute) + in Store()
242 Error::Type::UNEXPECTED_ATTRIBUTE); in Store()
252 std::optional<Metadata::Error> AnnotationMetadata::MeetExpRecordAttribute(const std::string_view &a… in MeetExpRecordAttribute()
256 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpRecordAttribute()
258 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpRecordAttribute()
266 std::optional<Metadata::Error> AnnotationMetadata::MeetExpIdAttribute(const std::string_view &attri… in MeetExpIdAttribute()
270 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpIdAttribute()
272 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpIdAttribute()
276 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpIdAttribute()
278 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpIdAttribute()
286 std::optional<Metadata::Error> AnnotationMetadata::MeetExpElementNameAttribute(const std::string_vi… in MeetExpElementNameAttribute()
290 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementNameAttribute()
292 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementNameAttribute()
296 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementNameAttribute()
298 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementNameAttribute()
306 std::optional<Metadata::Error> AnnotationMetadata::MeetExpElementTypeAttribute( in MeetExpElementTypeAttribute()
310 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementTypeAttribute()
312 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementTypeAttribute()
316 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementTypeAttribute()
318 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementTypeAttribute()
326 std::optional<Metadata::Error> AnnotationMetadata::MeetExpElementArrayComponentTypeAttribute( in MeetExpElementArrayComponentTypeAttribute()
330 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementArrayComponentTypeAttribute()
332 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementArrayComponentTypeAttribute()
336 …return Error(std::string("Unexpected attribute '").append(attribute) + "'. Annotation element type… in MeetExpElementArrayComponentTypeAttribute()
337 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementArrayComponentTypeAttribute()
341 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementArrayComponentTypeAttribute()
343 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementArrayComponentTypeAttribute()
351 std::optional<Metadata::Error> AnnotationMetadata::MeetExpElementValueAttribute(const std::string_v… in MeetExpElementValueAttribute()
355 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementValueAttribute()
357 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementValueAttribute()
361 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementValueAttribute()
363 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementValueAttribute()
367 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementValueAttribute()
369 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementValueAttribute()
373 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementValueAttribute()
375 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementValueAttribute()
381 std::optional<Metadata::Error> AnnotationMetadata::StoreValue(const std::string_view &attribute, in StoreValue()
414 return Error(std::string("Unexpected attribute '").append(attribute) + in StoreValue()
416 Error::Type::UNEXPECTED_ATTRIBUTE); in StoreValue()
426 std::optional<Metadata::Error> AnnotationMetadata::ValidateData() in ValidateData()
429 return Error("Annotation element isn't completely defined", Error::Type::MISSING_ATTRIBUTE); in ValidateData()
479 std::optional<Metadata::Error> FieldMetadata::StoreValue(const std::string_view &attribute, in StoreValue()
497 return res.Error(); in StoreValue()