userver: formats::json::Schema::ValidationResult Class Reference
Loading...
Searching...
No Matches
formats::json::Schema::ValidationResult Class Referencefinal

#include <userver/formats/json/schema.hpp>

Detailed Description

Contains error details (if any) from Schema::Validate.

Definition at line 53 of file schema.hpp.

Public Member Functions

 ValidationResult () noexcept
 Creates an IsValid result.
 
 ValidationResult (ValidationResult &&) noexcept
 
ValidationResultoperator= (ValidationResult &&) noexcept
 
 operator bool () const noexcept
 
bool IsValid () const noexcept
 
bool IsError () const noexcept
 
void ThrowIfError () &&
 
ValidationError GetError () &&
 

Member Function Documentation

◆ GetError()

ValidationError formats::json::Schema::ValidationResult::GetError ( ) &&
Returns
Validation error, IsError must be true.

◆ IsError()

bool formats::json::Schema::ValidationResult::IsError ( ) const
noexcept
Returns
true on validation error.

◆ IsValid()

bool formats::json::Schema::ValidationResult::IsValid ( ) const
noexcept
Returns
true on validation success.

◆ operator bool()

formats::json::Schema::ValidationResult::operator bool ( ) const
explicitnoexcept
Returns
true on validation success.

◆ ThrowIfError()

void formats::json::Schema::ValidationResult::ThrowIfError ( ) &&

Friends And Related Symbol Documentation

◆ Schema

Definition at line 80 of file schema.hpp.

◆ ValidationError

Definition at line 81 of file schema.hpp.


The documentation for this class was generated from the following file: