TemplateErrors class
Erreurs LG centralisées.
Propriétés
Méthodes
Détails de la propriété
emptyStrucContent
static emptyStrucContent: string = "Invalid structure body. Body cannot be empty."
Valeur de propriété
string
extraExpressionInCondition
static extraExpressionInCondition: string = "Invalid condition. 'ELSE' definition cannot include an expression."
Valeur de propriété
string
extraExpressionInSwitchCase
static extraExpressionInSwitchCase: string = "Invalid condition. 'DEFAULT' statement cannot include an expression."
Valeur de propriété
string
importFormatError
static importFormatError: string = "Import format should follow '[x](y)' or '[x](y) as z'."
Valeur de propriété
string
invalidExpressionInCondition
static invalidExpressionInCondition: string = "Invalid condition. 'IF', 'ELSEIF' definitions must include a valid expression."
Valeur de propriété
string
invalidExpressionInSwiathCase
static invalidExpressionInSwiathCase: string = "Invalid condition. 'SWITCH' and 'CASE' statements must include a valid expression."
Valeur de propriété
string
invalidMemory
static invalidMemory: string = "Scope is not a LG customized memory."
Valeur de propriété
string
invalidMiddleInCondition
static invalidMiddleInCondition: string = "Invalid template body. Expecting 'ELSEIF'."
Valeur de propriété
string
invalidStatementInMiddlerOfSwitchCase
static invalidStatementInMiddlerOfSwitchCase: string = "Invalid template body. Expecting a 'CASE' statement."
Valeur de propriété
string
invalidTemplateBody
static invalidTemplateBody: string = "Invalid template body. Expecting '-' prefix."
Valeur de propriété
string
invalidTemplateNameType
static invalidTemplateNameType: string = "Expected string type for the parameter of template function."
Valeur de propriété
string
invalidWhitespaceInCondition
static invalidWhitespaceInCondition: string = "Invalid condition: At most 1 whitespace allowed between 'IF/ELSEIF/ELSE' and ':'."
Valeur de propriété
string
invalidWhitespaceInSwitchCase
static invalidWhitespaceInSwitchCase: string = "Invalid condition: At most 1 whitespace allowed between 'SWITCH/CASE/DEFAULT' and ':'."
Valeur de propriété
string
loopDetected
static loopDetected: string = "Loop detected:"
Valeur de propriété
string
missingCaseInSwitchCase
static missingCaseInSwitchCase: string = "Invalid template body. Expecting at least one 'CASE' statement."
Valeur de propriété
string
missingStrucEnd
static missingStrucEnd: string = "Invalid structure body. Expecting ']' at the end of the body."
Valeur de propriété
string
missingTemplateBodyInCondition
static missingTemplateBodyInCondition: string = "Invalid condition body. Conditions must include a valid body."
Valeur de propriété
string
missingTemplateBodyInSwitchCase
static missingTemplateBodyInSwitchCase: string = "Invalid condition body. Expecing valid body inside a 'CASE' or 'DEFAULT' block."
Valeur de propriété
string
multipleIfInCondition
static multipleIfInCondition: string = "Invalid template body. There cannot be more than one 'IF' condition. Expecting 'IFELSE' or 'ELSE' statement."
Valeur de propriété
string
multipleSwithStatementInSwitchCase
static multipleSwithStatementInSwitchCase: string = "Invalid template body. There cannot be more than one 'SWITCH' statement. Expecting 'CASE' or 'DEFAULT' statement."
Valeur de propriété
string
noCloseBracket
static noCloseBracket: string = "Close } is missing in Expression."
Valeur de propriété
string
noEndingInMultiline
static noEndingInMultiline: string = "Expecting "```" to close the multi-line block."
Valeur de propriété
string
noTemplate
static noTemplate: string = "LG file must have at least one template definition."
Valeur de propriété
string
notEndWithDefaultInSwitchCase
static notEndWithDefaultInSwitchCase: string = "Conditional response template does not end with 'DEFAULT' condition."
Valeur de propriété
string
notEndWithElseInCondition
static notEndWithElseInCondition: string = "Conditional response template does not end with 'ELSE' condition."
Valeur de propriété
string
notStartWithIfInCondition
static notStartWithIfInCondition: string = "Invalid condition: Conditions must start with 'IF/ELSEIF/ELSE' prefix."
Valeur de propriété
string
notStartWithSwitchInSwitchCase
static notStartWithSwitchInSwitchCase: string = "Invalid conditional response template. Expecting a 'SWITCH' statement?"
Valeur de propriété
string
staticFailure
static staticFailure: string = "Static failure with the following error."
Valeur de propriété
string
Détails de la méthode
argumentMismatch(string, number, number)
static function argumentMismatch(templateName: string, expectedCount: number, actualCount: number): string
Paramètres
- templateName
-
string
- expectedCount
-
number
- actualCount
-
number
Retours
string
duplicatedTemplateInDiffTemplate(string, string)
static function duplicatedTemplateInDiffTemplate(templateName: string, source: string): string
Paramètres
- templateName
-
string
- source
-
string
Retours
string
duplicatedTemplateInSameTemplate(string)
static function duplicatedTemplateInSameTemplate(templateName: string): string
Paramètres
- templateName
-
string
Retours
string
errorExpression(string, string, string)
static function errorExpression(refFullText: string, templateName: string, prefixText: string): string
Paramètres
- refFullText
-
string
- templateName
-
string
- prefixText
-
string
Retours
string
expressionParseError(string)
static function expressionParseError(exp: string): string
Paramètres
- exp
-
string
Retours
string
invalidParameter(string)
static function invalidParameter(invalidParameter: string): string
Paramètres
- invalidParameter
-
string
Retours
string
invalidStrucBody(string)
static function invalidStrucBody(invalidBody: string): string
Paramètres
- invalidBody
-
string
Retours
string
invalidStrucName(string)
static function invalidStrucName(invalidName: string): string
Paramètres
- invalidName
-
string
Retours
string
invalidTemplateName(string)
static function invalidTemplateName(invalidTemplateName: string): string
Paramètres
- invalidTemplateName
-
string
Retours
string
noTemplateBody(string)
static function noTemplateBody(templateName: string): string
Paramètres
- templateName
-
string
Retours
string
nullExpression(string)
static function nullExpression(expression: string): string
Paramètres
- expression
-
string
Retours
string
syntaxError(string)
static function syntaxError(unexpectedContent: string): string
Paramètres
- unexpectedContent
-
string
Retours
string
templateExist(string)
static function templateExist(templateName: string): string
Paramètres
- templateName
-
string
Retours
string
templateNotExist(string)
static function templateNotExist(templateName: string): string
Paramètres
- templateName
-
string
Retours
string