| 31 | ErrorMessages::ErrorMessages(SyncValidator& validator) : validator_(validator) {} |
| 32 | |
| 33 | std::string ErrorMessages::Error(const HazardResult& hazard, const CommandExecutionContext& context, vvl::Func command, |
| 34 | const std::string& resource_description, const char* message_type, |
| 35 | const AdditionalMessageInfo& additional_info) const { |
| 36 | std::string message = FormatErrorMessage(hazard, context, command, resource_description, additional_info); |
| 37 | |
| 38 | if (validator_.syncval_settings.message_extra_properties) { |
| 39 | if (!message.empty() && message.back() != '\n') { |
| 40 | message += '\n'; |
| 41 | } |
| 42 | const ReportProperties properties = GetErrorMessageProperties(hazard, context, command, message_type, additional_info); |
| 43 | message += properties.FormatExtraPropertiesSection(); |
| 44 | } |
| 45 | return message; |
| 46 | } |
| 47 | |
| 48 | std::string ErrorMessages::BufferError(const HazardResult& hazard, const CommandBufferAccessContext& cb_context, vvl::Func command, |
| 49 | const std::string& resource_description, const AccessRange range, |
no test coverage detected