Error Last update: 16.07.2025 1#ifndef CFFSDK_PROJECT_ERROR_H 2#define CFFSDK_PROJECT_ERROR_H 3 4#include "Project/LibraryType.hpp" 5#include <string> 6#include <vector> 7 8namespace ansys { 9namespace Project { 10 11class ANSYS_PROJECT_DLL Error { 12public: 13 Error(); 14 Error(const std::string& pErrorStr); 15 16 void addError(const std::string& pErrororStr); 17 void addWarning(const std::string& pWarningStr); 18 void addInfo(const std::string& pInfoStr); 19 20 void operator+=(const Error& pObj); 21 bool operator()() const; 22 bool ok() const; 23 24 std::string getErrorsString() const; 25 std::string getAllString() const; 26 const std::vector<std::string>& getErrors() const; 27 const std::vector<std::string>& getWarnings() const; 28 const std::vector<std::string>& getInfos() const; 29 30private: 31 std::vector<std::string> aErrors; 32 std::vector<std::string> aWarnings; 33 std::vector<std::string> aInfos; 34}; 35 36} 37} 38 39#endif // CFFSDK_PROJECT_ERROR_H ansys::Project::ErrorThe return state / error value of a Project function call.Definition: Error.hpp:11 ansysDefinition: API.dox:1