Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::validation::ValidationError Struct Reference

Represents a validation error. More...

#include "validation_error.hpp"

Collaboration diagram for shared_model::validation::ValidationError:
Collaboration graph

Public Member Functions

 ValidationError (ReasonName name, std::vector< ReasonType > errors, std::vector< ValidationError > child_errors={})
std::string toString () const
ValidationErroroperator|= (ValidationError other)
 Merge another validation error into this. More...

Public Attributes

ReasonName name
 Error reason kind. More...
std::vector< ReasonTypemy_errors
 Errors of this kind. More...
std::vector< ValidationErrorchild_errors
 Subkind errors. More...

Detailed Description

Represents a validation error.

Constructor & Destructor Documentation

◆ ValidationError()

ValidationError::ValidationError ( ReasonName  name,
std::vector< ReasonType errors,
std::vector< ValidationError child_errors = {} 

Member Function Documentation

◆ operator|=()

ValidationError & ValidationError::operator|= ( ValidationError  other)

Merge another validation error into this.

◆ toString()

std::string ValidationError::toString ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ child_errors

std::vector<ValidationError> shared_model::validation::ValidationError::child_errors

Subkind errors.

◆ my_errors

std::vector<ReasonType> shared_model::validation::ValidationError::my_errors

Errors of this kind.

◆ name

ReasonName shared_model::validation::ValidationError::name

Error reason kind.

The documentation for this struct was generated from the following files: