• Home
  • Raw
  • Download

Lines Matching refs:Error

27 std::optional<Metadata::Error> Metadata::ValidateSize(std::string_view value) const  in ValidateSize()
32 return Error("Unsigned interger 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()
142 … 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()
229 return res.Error(); in AddValue()
237 std::optional<Metadata::Error> AnnotationMetadata::Store(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(std::string_view attribut… 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(std::string_view attribute, 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(std::string_view att… 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(std::string_view att… 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(std::s… 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(std::string_view at… 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(std::string_view attribute, std::stri… in StoreValue()
413 return Error(std::string("Unexpected attribute '").append(attribute) + in StoreValue()
415 Error::Type::UNEXPECTED_ATTRIBUTE); in StoreValue()
425 std::optional<Metadata::Error> AnnotationMetadata::ValidateData() in ValidateData()
428 return Error("Annotation element isn't completely defined", Error::Type::MISSING_ATTRIBUTE); in ValidateData()
483 std::optional<Metadata::Error> FieldMetadata::StoreValue(std::string_view attribute, std::string_vi… in StoreValue()
500 return res.Error(); in StoreValue()