Aktualizr
C++ SOTA Client
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
data::ResultCode Struct Reference
Collaboration diagram for data::ResultCode:
[legend]

Public Types

enum  Numeric {
  kOk = 0, Numeric::kAlreadyProcessed = 1, Numeric::kVerificationFailed = 3, Numeric::kInstallFailed = 4,
  Numeric::kDownloadFailed = 5, Numeric::kInternalError = 18, Numeric::kGeneralError = 19, kNeedCompletion = 21,
  kCustomError = 22, kUnknown = -1
}
 

Public Member Functions

 ResultCode (ResultCode::Numeric in_num_code)
 
 ResultCode (ResultCode::Numeric in_num_code, std::string text_code_in)
 
bool operator== (const ResultCode &rhs) const
 
bool operator!= (const ResultCode &rhs) const
 
std::string toString () const
 
std::string toRepr () const
 

Static Public Member Functions

static ResultCode fromRepr (const std::string &repr)
 

Public Attributes

Numeric num_code
 
std::string text_code
 

Friends

std::ostream & operator<< (std::ostream &os, const ResultCode &result_code)
 

Detailed Description

Definition at line 219 of file types.h.

Member Enumeration Documentation

◆ Numeric

Enumerator
kAlreadyProcessed 

Operation has already been processed.

kVerificationFailed 

Metadata verification failed.

kInstallFailed 

Package installation failed.

kDownloadFailed 

Package download failed.

kInternalError 

SWM Internal integrity error.

kGeneralError 

Other error.

Definition at line 221 of file types.h.


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