stmm-games-doc  0.32.0
Static Public Member Functions | List of all members
stmg::XmlCommonErrors Class Reference

Static Public Member Functions

static std::runtime_error error (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr, const std::string &sErr)
 Create error exception. More...
 
static std::runtime_error errorAttrCannotBothBeDefined (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr, const std::string &sOtherAttr)
 
static std::runtime_error errorAttrAlreadyDefinedByAnother (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr, const std::string &sOtherAttr)
 
static std::runtime_error errorAttrAlreadyDefinedByOthers (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr, const std::string &sOtherAttr, const std::string &sOtherAttr2)
 
static std::runtime_error errorAttrWithValueAlreadyDefined (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr, const std::string &sValue)
 
static std::runtime_error errorAttrWithValueNotDefined (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr, const std::string &sValue)
 
static std::runtime_error errorAttrCannotBeEmpty (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr)
 
static std::runtime_error errorAttrHexColorFormat (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr)
 
static std::runtime_error errorAttrOneTooManyNames (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr)
 
static std::runtime_error errorAttrNotWellFormedNumber (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr)
 
static std::runtime_error errorAttrNotWellFormedName (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr)
 
static std::runtime_error errorAttrUTF8CharInvalid (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr, const std::string &sValue)
 
static std::runtime_error errorAttrCannotHaveEmptyValue (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr)
 
static std::runtime_error errorAttrCannotDefineRangeOfNames (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr)
 
static std::runtime_error errorAttrNotFound (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr)
 
static std::runtime_error errorAttrInvalidValue (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr)
 
static std::runtime_error errorAttrVariableNotDefined (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttr, const std::string &sVarName)
 
static std::runtime_error errorAttrEitherMustBeDefined (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttrName1, const std::string &sAttrName2)
 
static std::runtime_error errorAttrEitherMustBeDefined (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttrName1, const std::string &sAttrName2, const std::string &sAttrName3)
 
static std::runtime_error errorAttrEitherMustBeDefined (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sAttrName1, const std::string &sAttrName2, const std::string &sAttrName3, const std::string &sAttrName4)
 
static std::runtime_error errorElementExpected (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sElementName)
 
static std::runtime_error errorElementEitherMustBeDefined (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sElementName1, const std::string &sElementName2)
 
static std::runtime_error errorElementTooMany (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sElementName)
 
static std::runtime_error errorElementInvalid (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sElementName)
 
static std::runtime_error errorElementCannotBothBeDefined (ParserCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sElementName, const std::string &sElementName2)
 

Member Function Documentation

◆ error()

static std::runtime_error stmg::XmlCommonErrors::error ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr,
const std::string &  sErr 
)
static

Create error exception.

Adds line number and context.

Parameters
oCtxThe context.
p0ElementThe element. Cannot be null.
sAttrThe attribute: Can be empty.
sErrThe main error string.
Returns
The exception.

◆ errorAttrAlreadyDefinedByAnother()

static std::runtime_error stmg::XmlCommonErrors::errorAttrAlreadyDefinedByAnother ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr,
const std::string &  sOtherAttr 
)
static

◆ errorAttrAlreadyDefinedByOthers()

static std::runtime_error stmg::XmlCommonErrors::errorAttrAlreadyDefinedByOthers ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr,
const std::string &  sOtherAttr,
const std::string &  sOtherAttr2 
)
static

◆ errorAttrCannotBeEmpty()

static std::runtime_error stmg::XmlCommonErrors::errorAttrCannotBeEmpty ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr 
)
static

◆ errorAttrCannotBothBeDefined()

static std::runtime_error stmg::XmlCommonErrors::errorAttrCannotBothBeDefined ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr,
const std::string &  sOtherAttr 
)
static

◆ errorAttrCannotDefineRangeOfNames()

static std::runtime_error stmg::XmlCommonErrors::errorAttrCannotDefineRangeOfNames ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr 
)
static

◆ errorAttrCannotHaveEmptyValue()

static std::runtime_error stmg::XmlCommonErrors::errorAttrCannotHaveEmptyValue ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr 
)
static

◆ errorAttrEitherMustBeDefined() [1/3]

static std::runtime_error stmg::XmlCommonErrors::errorAttrEitherMustBeDefined ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttrName1,
const std::string &  sAttrName2 
)
static

◆ errorAttrEitherMustBeDefined() [2/3]

static std::runtime_error stmg::XmlCommonErrors::errorAttrEitherMustBeDefined ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttrName1,
const std::string &  sAttrName2,
const std::string &  sAttrName3 
)
static

◆ errorAttrEitherMustBeDefined() [3/3]

static std::runtime_error stmg::XmlCommonErrors::errorAttrEitherMustBeDefined ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttrName1,
const std::string &  sAttrName2,
const std::string &  sAttrName3,
const std::string &  sAttrName4 
)
static

◆ errorAttrHexColorFormat()

static std::runtime_error stmg::XmlCommonErrors::errorAttrHexColorFormat ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr 
)
static

◆ errorAttrInvalidValue()

static std::runtime_error stmg::XmlCommonErrors::errorAttrInvalidValue ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr 
)
static

◆ errorAttrNotFound()

static std::runtime_error stmg::XmlCommonErrors::errorAttrNotFound ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr 
)
static

◆ errorAttrNotWellFormedName()

static std::runtime_error stmg::XmlCommonErrors::errorAttrNotWellFormedName ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr 
)
static

◆ errorAttrNotWellFormedNumber()

static std::runtime_error stmg::XmlCommonErrors::errorAttrNotWellFormedNumber ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr 
)
static

◆ errorAttrOneTooManyNames()

static std::runtime_error stmg::XmlCommonErrors::errorAttrOneTooManyNames ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr 
)
static

◆ errorAttrUTF8CharInvalid()

static std::runtime_error stmg::XmlCommonErrors::errorAttrUTF8CharInvalid ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr,
const std::string &  sValue 
)
static

◆ errorAttrVariableNotDefined()

static std::runtime_error stmg::XmlCommonErrors::errorAttrVariableNotDefined ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr,
const std::string &  sVarName 
)
static

◆ errorAttrWithValueAlreadyDefined()

static std::runtime_error stmg::XmlCommonErrors::errorAttrWithValueAlreadyDefined ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr,
const std::string &  sValue 
)
static

◆ errorAttrWithValueNotDefined()

static std::runtime_error stmg::XmlCommonErrors::errorAttrWithValueNotDefined ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sAttr,
const std::string &  sValue 
)
static

◆ errorElementCannotBothBeDefined()

static std::runtime_error stmg::XmlCommonErrors::errorElementCannotBothBeDefined ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sElementName,
const std::string &  sElementName2 
)
static

◆ errorElementEitherMustBeDefined()

static std::runtime_error stmg::XmlCommonErrors::errorElementEitherMustBeDefined ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sElementName1,
const std::string &  sElementName2 
)
static

◆ errorElementExpected()

static std::runtime_error stmg::XmlCommonErrors::errorElementExpected ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sElementName 
)
static

◆ errorElementInvalid()

static std::runtime_error stmg::XmlCommonErrors::errorElementInvalid ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sElementName 
)
static

◆ errorElementTooMany()

static std::runtime_error stmg::XmlCommonErrors::errorElementTooMany ( ParserCtx oCtx,
const xmlpp::Element *  p0Element,
const std::string &  sElementName 
)
static