Lines Matching full:error
27 std::optional<Metadata::Error> Metadata::ValidateSize(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(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(std::string_view value, in CreatePrimitiveValue()
137 return Unexpected(res.Error()); in CreatePrimitiveValue()
143 … return Unexpected(Metadata::Error("Value is out of range", Metadata::Error::Type::INVALID_VALUE)); in CreatePrimitiveValue()
149 static Expected<ScalarValue, Metadata::Error> CreateValue( in CreateValue()
202 … return Unexpected(Metadata::Error("Unknown annotation id", Metadata::Error::Type::INVALID_VALUE));
216 std::optional<Metadata::Error> AnnotationMetadata::AnnotationElementBuilder::AddValue( in AddValue()
230 return res.Error(); in AddValue()
238 std::optional<Metadata::Error> AnnotationMetadata::Store(std::string_view attribute) in Store()
241 return Error(std::string("Unexpected attribute '").append(attribute) + in Store()
243 Error::Type::UNEXPECTED_ATTRIBUTE); in Store()
253 std::optional<Metadata::Error> AnnotationMetadata::MeetExpRecordAttribute(std::string_view attribut… in MeetExpRecordAttribute()
257 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpRecordAttribute()
259 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpRecordAttribute()
267 std::optional<Metadata::Error> AnnotationMetadata::MeetExpIdAttribute(std::string_view attribute, in MeetExpIdAttribute()
271 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpIdAttribute()
273 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpIdAttribute()
277 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpIdAttribute()
279 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpIdAttribute()
287 std::optional<Metadata::Error> AnnotationMetadata::MeetExpElementNameAttribute(std::string_view att… in MeetExpElementNameAttribute()
291 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementNameAttribute()
293 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementNameAttribute()
297 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementNameAttribute()
299 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementNameAttribute()
307 std::optional<Metadata::Error> AnnotationMetadata::MeetExpElementTypeAttribute(std::string_view att… in MeetExpElementTypeAttribute()
311 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementTypeAttribute()
313 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementTypeAttribute()
317 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementTypeAttribute()
319 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementTypeAttribute()
327 std::optional<Metadata::Error> AnnotationMetadata::MeetExpElementArrayComponentTypeAttribute(std::s… in MeetExpElementArrayComponentTypeAttribute()
331 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementArrayComponentTypeAttribute()
333 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementArrayComponentTypeAttribute()
337 …return Error(std::string("Unexpected attribute '").append(attribute) + "'. Annotation element type… in MeetExpElementArrayComponentTypeAttribute()
338 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementArrayComponentTypeAttribute()
342 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementArrayComponentTypeAttribute()
344 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementArrayComponentTypeAttribute()
352 std::optional<Metadata::Error> AnnotationMetadata::MeetExpElementValueAttribute(std::string_view at… in MeetExpElementValueAttribute()
356 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementValueAttribute()
358 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementValueAttribute()
362 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementValueAttribute()
364 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementValueAttribute()
368 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementValueAttribute()
370 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementValueAttribute()
374 return Error(std::string("Unexpected attribute '").append(attribute) + in MeetExpElementValueAttribute()
376 Error::Type::UNEXPECTED_ATTRIBUTE); in MeetExpElementValueAttribute()
382 std::optional<Metadata::Error> AnnotationMetadata::StoreValue(std::string_view attribute, std::stri… 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(std::string_view attribute, std::string_vi… in StoreValue()
496 return res.Error(); in StoreValue()