TemplateErrors class
一元化された LG エラー。
プロパティ
メソッド
プロパティの詳細
emptyStrucContent
static emptyStrucContent: string = "Invalid structure body. Body cannot be empty."
プロパティ値
string
extraExpressionInCondition
static extraExpressionInCondition: string = "Invalid condition. 'ELSE' definition cannot include an expression."
プロパティ値
string
extraExpressionInSwitchCase
static extraExpressionInSwitchCase: string = "Invalid condition. 'DEFAULT' statement cannot include an expression."
プロパティ値
string
importFormatError
static importFormatError: string = "Import format should follow '[x](y)' or '[x](y) as z'."
プロパティ値
string
invalidExpressionInCondition
static invalidExpressionInCondition: string = "Invalid condition. 'IF', 'ELSEIF' definitions must include a valid expression."
プロパティ値
string
invalidExpressionInSwiathCase
static invalidExpressionInSwiathCase: string = "Invalid condition. 'SWITCH' and 'CASE' statements must include a valid expression."
プロパティ値
string
invalidMemory
static invalidMemory: string = "Scope is not a LG customized memory."
プロパティ値
string
invalidMiddleInCondition
static invalidMiddleInCondition: string = "Invalid template body. Expecting 'ELSEIF'."
プロパティ値
string
invalidStatementInMiddlerOfSwitchCase
static invalidStatementInMiddlerOfSwitchCase: string = "Invalid template body. Expecting a 'CASE' statement."
プロパティ値
string
invalidTemplateBody
static invalidTemplateBody: string = "Invalid template body. Expecting '-' prefix."
プロパティ値
string
invalidTemplateNameType
static invalidTemplateNameType: string = "Expected string type for the parameter of template function."
プロパティ値
string
invalidWhitespaceInCondition
static invalidWhitespaceInCondition: string = "Invalid condition: At most 1 whitespace allowed between 'IF/ELSEIF/ELSE' and ':'."
プロパティ値
string
invalidWhitespaceInSwitchCase
static invalidWhitespaceInSwitchCase: string = "Invalid condition: At most 1 whitespace allowed between 'SWITCH/CASE/DEFAULT' and ':'."
プロパティ値
string
loopDetected
static loopDetected: string = "Loop detected:"
プロパティ値
string
missingCaseInSwitchCase
static missingCaseInSwitchCase: string = "Invalid template body. Expecting at least one 'CASE' statement."
プロパティ値
string
missingStrucEnd
static missingStrucEnd: string = "Invalid structure body. Expecting ']' at the end of the body."
プロパティ値
string
missingTemplateBodyInCondition
static missingTemplateBodyInCondition: string = "Invalid condition body. Conditions must include a valid body."
プロパティ値
string
missingTemplateBodyInSwitchCase
static missingTemplateBodyInSwitchCase: string = "Invalid condition body. Expecing valid body inside a 'CASE' or 'DEFAULT' block."
プロパティ値
string
multipleIfInCondition
static multipleIfInCondition: string = "Invalid template body. There cannot be more than one 'IF' condition. Expecting 'IFELSE' or 'ELSE' statement."
プロパティ値
string
multipleSwithStatementInSwitchCase
static multipleSwithStatementInSwitchCase: string = "Invalid template body. There cannot be more than one 'SWITCH' statement. Expecting 'CASE' or 'DEFAULT' statement."
プロパティ値
string
noCloseBracket
static noCloseBracket: string = "Close } is missing in Expression."
プロパティ値
string
noEndingInMultiline
static noEndingInMultiline: string = "Expecting "```" to close the multi-line block."
プロパティ値
string
noTemplate
static noTemplate: string = "LG file must have at least one template definition."
プロパティ値
string
notEndWithDefaultInSwitchCase
static notEndWithDefaultInSwitchCase: string = "Conditional response template does not end with 'DEFAULT' condition."
プロパティ値
string
notEndWithElseInCondition
static notEndWithElseInCondition: string = "Conditional response template does not end with 'ELSE' condition."
プロパティ値
string
notStartWithIfInCondition
static notStartWithIfInCondition: string = "Invalid condition: Conditions must start with 'IF/ELSEIF/ELSE' prefix."
プロパティ値
string
notStartWithSwitchInSwitchCase
static notStartWithSwitchInSwitchCase: string = "Invalid conditional response template. Expecting a 'SWITCH' statement?"
プロパティ値
string
staticFailure
static staticFailure: string = "Static failure with the following error."
プロパティ値
string
メソッドの詳細
argumentMismatch(string, number, number)
static function argumentMismatch(templateName: string, expectedCount: number, actualCount: number): string
パラメーター
- templateName
-
string
- expectedCount
-
number
- actualCount
-
number
戻り値
string
duplicatedTemplateInDiffTemplate(string, string)
static function duplicatedTemplateInDiffTemplate(templateName: string, source: string): string
パラメーター
- templateName
-
string
- source
-
string
戻り値
string
duplicatedTemplateInSameTemplate(string)
static function duplicatedTemplateInSameTemplate(templateName: string): string
パラメーター
- templateName
-
string
戻り値
string
errorExpression(string, string, string)
static function errorExpression(refFullText: string, templateName: string, prefixText: string): string
パラメーター
- refFullText
-
string
- templateName
-
string
- prefixText
-
string
戻り値
string
expressionParseError(string)
static function expressionParseError(exp: string): string
パラメーター
- exp
-
string
戻り値
string
invalidParameter(string)
static function invalidParameter(invalidParameter: string): string
パラメーター
- invalidParameter
-
string
戻り値
string
invalidStrucBody(string)
static function invalidStrucBody(invalidBody: string): string
パラメーター
- invalidBody
-
string
戻り値
string
invalidStrucName(string)
static function invalidStrucName(invalidName: string): string
パラメーター
- invalidName
-
string
戻り値
string
invalidTemplateName(string)
static function invalidTemplateName(invalidTemplateName: string): string
パラメーター
- invalidTemplateName
-
string
戻り値
string
noTemplateBody(string)
static function noTemplateBody(templateName: string): string
パラメーター
- templateName
-
string
戻り値
string
nullExpression(string)
static function nullExpression(expression: string): string
パラメーター
- expression
-
string
戻り値
string
syntaxError(string)
static function syntaxError(unexpectedContent: string): string
パラメーター
- unexpectedContent
-
string
戻り値
string
templateExist(string)
static function templateExist(templateName: string): string
パラメーター
- templateName
-
string
戻り値
string
templateNotExist(string)
static function templateNotExist(templateName: string): string
パラメーター
- templateName
-
string
戻り値
string