15 return tr(
"Expected string or float[d]");
17 return tr(
"Expected float[d]");
19 return tr(
"Expected float[%1]");
21 return tr(
"Type mismatch, first: '%1'; second: '%2'");
23 return tr(
"Expected float or float[3]");
25 return tr(
"Expected '%1' for argument, got '%2'");
27 return tr(
"Wrong number of arguments, should be 1 to 7");
29 return tr(
"Wrong number of arguments, should be multiple of 3 plus 1");
31 return tr(
"Wrong number of arguments, should be 1 or more");
33 return tr(
"First argument must be a string");
35 return tr(
"Incomplete format specifier");
37 return tr(
"No variable named '%1'");
39 return tr(
"Function '%1' has no definition");
41 return tr(
"Assignment operation has incorrect type '%1'");
43 return tr(
"Types of conditional are not compatible");
45 return tr(
"Variable '%1' defined in conditionals inconsistently");
47 return tr(
"Too few arguments for function '%1'");
49 return tr(
"Too many arguments for function '%1'");
51 return tr(
"Expression generated type '%1', incompatible with desired type '%2'");
53 return tr(
"Syntax error near '%1'");
55 return tr(
"Unexpected end of expression near '%1'");
57 return tr(
"Unexpected end of format string");
59 return tr(
"Invalid format string, only %v or %f is allowed");
61 return tr(
"Wrong number of arguments for format string");
64 return tr(
"Unknown error (message = %1)");
static QString message(KSeExpr::ErrorCode code)
@ InvalidFormatString
Invalid format string, only v or f is allowed.
@ ConditionalTypesNotCompatible
"Types of conditional are not compatible",
@ ExpectedStringOrFloatAnyD
"Expected String or Float[d]"
@ UndeclaredFunction
"Function " << _name << " has no definition"
@ ArgumentTypeMismatch
"Expected "<< type << " for argument, got " << childType
@ BadAssignmentOperator
"Assignment operation has bad type: " << _type
@ WrongNumberOfArgumentsMultiple3Plus1
"Wrong number of arguments, should be multiple of 3 plus 1"
@ SyntaxError
Syntax error.
@ ExpectedFloatAnyD
"Expected Float[d]"
@ FirstArgumentNotString
"First argument must be a string."
@ WrongNumberOfArguments
"Wrong number of arguments, should be 1 to 7"
@ FunctionTooManyArguments
"Too many args for function " << _name
@ ExpectedFloatOrFloat3
"Expected float or FP[3]"
@ Unknown
Unknown error (message = %1)
@ ExpectedFloatD
"Expected Float[" << d << "]"
@ TypeMismatch12
"Type mismatch. First: " << first << " Second: " << second
@ WrongNumberOfArguments1Plus
"Wrong number of arguments, should be >= 1"
@ FunctionTooFewArguments
"Too few args for function " << _name
@ UnexpectedEndOfFormatString
Unexpected end of format string.
@ ExpressionIncompatibleTypes
"Expression generated type " << _parseTree->type() << " incompatible with desired type " << _desiredR...
@ IncompleteFormatSpecifier
"incomplete format specifier"
@ UnexpectedEndOfExpression
Unexpected end of expression.
@ InconsistentDefinition
"Variable " << name() << " defined in conditionals inconsistently."
@ WrongNumberOfArgumentsForFormatString
Wrong number of arguments for format string.