88 explicit ParseContext(
const std::vector<std::pair<std::string , InputErrorAction>>& initial);
90 void handleError(
const std::string& errorKey,
const std::string& msg,
const std::optional<KeywordLocation>& location,
ErrorGuard& errors)
const;
91 void handleUnknownKeyword(
const std::string& keyword,
const std::optional<KeywordLocation>& location,
ErrorGuard& errors)
const;
92 bool hasKey(
const std::string& key)
const;
93 ParseContext withKey(
const std::string& key, InputErrorAction action)
const;
94 ParseContext& withKey(
const std::string& key, InputErrorAction action);
95 void updateKey(
const std::string& key , InputErrorAction action);
96 void update(InputErrorAction action);
97 void update(
const std::string& keyString , InputErrorAction action);
98 void ignoreKeyword(
const std::string& keyword);
99 InputErrorAction get(
const std::string& key)
const;
100 std::map<std::string,InputErrorAction>::const_iterator begin()
const;
101 std::map<std::string,InputErrorAction>::const_iterator end()
const;
108 void addKey(
const std::string& key, InputErrorAction default_action);
126 const static std::string PARSE_EXTRA_RECORDS;
150 const static std::string PARSE_UNKNOWN_KEYWORD;
156 const static std::string PARSE_RANDOM_TEXT;
163 const static std::string PARSE_RANDOM_SLASH;
178 const static std::string PARSE_MISSING_DIMS_KEYWORD;
188 const static std::string PARSE_EXTRA_DATA;
195 const static std::string PARSE_MISSING_INCLUDE;
203 const static std::string PARSE_INVALID_KEYWORD_COMBINATION;
238 const static std::string PARSE_LONG_KEYWORD;
244 const static std::string UNIT_SYSTEM_MISMATCH;
252 const static std::string UNSUPPORTED_INITIAL_THPRES;
259 const static std::string UNSUPPORTED_TERMINATE_IF_BHP;
261 const static std::string UDQ_PARSE_ERROR;
262 const static std::string UDQ_TYPE_ERROR;
271 const static std::string INTERNAL_ERROR_UNINITIALIZED_THPRES;
277 const static std::string PARSE_MISSING_SECTIONS;
286 const static std::string PARSE_WGNAME_SPACE;
292 const static std::string SUMMARY_UNKNOWN_WELL;
293 const static std::string SUMMARY_UNKNOWN_GROUP;
294 const static std::string SUMMARY_UNKNOWN_NODE;
295 const static std::string SUMMARY_UNKNOWN_AQUIFER;
296 const static std::string SUMMARY_UNHANDLED_KEYWORD;
297 const static std::string SUMMARY_UNDEFINED_UDQ;
298 const static std::string SUMMARY_UDQ_MISSING_UNIT;
299 const static std::string SUMMARY_INVALID_FIPNUM;
300 const static std::string SUMMARY_EMPTY_REGION;
301 const static std::string SUMMARY_REGION_TOO_LARGE;
307 const static std::string SCHEDULE_INVALID_NAME;
315 const static std::string ACTIONX_ILLEGAL_KEYWORD;
316 const static std::string PYACTION_ILLEGAL_KEYWORD;
321 const static std::string ACTIONX_CONDITION_ERROR;
325 const static std::string ACTIONX_NO_CONDITION;
357 const static std::string RPT_MIXED_STYLE;
359 const static std::string RPT_UNKNOWN_MNEMONIC;
361 const static std::string SCHEDULE_GROUP_ERROR;
362 const static std::string SCHEDULE_IGNORED_GUIDE_RATE;
363 const static std::string SCHEDULE_WELL_IN_FIELD_GROUP;
365 const static std::string SCHEDULE_COMPSEGS_INVALID;
366 const static std::string SCHEDULE_COMPSEGS_NOT_SUPPORTED;
374 const static std::string SIMULATOR_KEYWORD_NOT_SUPPORTED;
375 const static std::string SIMULATOR_KEYWORD_NOT_SUPPORTED_CRITICAL;
376 const static std::string SIMULATOR_KEYWORD_ITEM_NOT_SUPPORTED;
377 const static std::string SIMULATOR_KEYWORD_ITEM_NOT_SUPPORTED_CRITICAL;
382 void envUpdate(
const std::string& envVariable , InputErrorAction action );
383 void patternUpdate(
const std::string& pattern , InputErrorAction action);
385 std::map<std::string , InputErrorAction> m_errorContexts;
386 std::set<std::string> ignore_keywords;
Definition ParseContext.hpp:84
static const std::string RUNSPEC_NUMMSW_TOO_LARGE
Dynamic number of multi-segmented wells exceeds maximum declared in RUNSPEC keyword WSEGDIMS (item 1)...
Definition ParseContext.hpp:223
static const std::string RUNSPEC_NUMWELLS_TOO_LARGE
Dynamic number of wells exceeds maximum declared in RUNSPEC keyword WELLDIMS (item 1).
Definition ParseContext.hpp:207
static const std::string RUNSPEC_CONNS_PER_WELL_TOO_LARGE
Dynamic number of connections per well exceeds maximum declared in RUNSPEC keyword WELLDIMS (item 2).
Definition ParseContext.hpp:211
static const std::string RUNSPEC_NUMBRANCH_TOO_LARGE
Dynamic number of branches exceeds maximum number declared in RUNSPEC keyword WSEGDIMS (item 3).
Definition ParseContext.hpp:231
static const std::string RUNSPEC_GROUPSIZE_TOO_LARGE
Dynamic group size exceeds maximum number declared in RUNSPEC keyword WELLDIMS (item 4).
Definition ParseContext.hpp:219
static const std::string RUNSPEC_NUMGROUPS_TOO_LARGE
Dynamic number of groups exceeds maximum number declared in RUNSPEC keyword WELLDIMS (item 3).
Definition ParseContext.hpp:215
static const std::string RUNSPEC_NUMSEG_PER_WELL_TOO_LARGE
Dynamic number of segments per MS well exceeds maximum declared in RUNSPEC keyword WSEGDIMS (item 2).
Definition ParseContext.hpp:227