STAR++ v0.2.2
C++ implementation of STAR voting
Loading...
Searching...
No Matches
Star::ReferenceError Struct Reference

The ReferenceError struct is used to report errors while parsing election/results data in their reference formats.

#include <star/reference.h>

Public Member Functions

bool isValid ()
 

Public Attributes

QString error
 
QString errorDetails
 
ReferenceErrorType type = ReferenceErrorType::NoError
 

Member Function Documentation

◆ isValid()

bool Star::ReferenceError::isValid ( )
inline

Returns true if the reference error actually describes an error; otherwise, returns false.

Member Data Documentation

◆ error

ReferenceErrorType Star::ReferenceError::error

A string that holds the primary error.

◆ errorDetails

ReferenceErrorType Star::ReferenceError::errorDetails

A string that details regarding the error.

◆ type

ReferenceErrorType Star::ReferenceError::type = ReferenceErrorType::NoError

The type of error that occurred.


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