PhraseError
public enum PhraseError : Error
Errors which can be thrown during framework usage
-
The given expression is empty
Declaration
Swift
case expressionIsEmpty
-
A infix operator needs to be in the form of
a ?? b
, but the second parameter was not givenDeclaration
Swift
case infixMissingSecondaryParameter
-
The type of two nodes differ
Declaration
Swift
case typesMismatch
-
A logical type, such as
true
orfalse
is expectedDeclaration
Swift
case typesNotLogical
-
Two types are not comparable
Declaration
Swift
case typesNotComparable
-
A string in the expression is not closed
Declaration
Swift
case missingClosingQuote
-
A requested variable with the given
name
could not be found in thecontext
Declaration
Swift
case unknownVariable(name: String)
-
Type of a value is not supported by the rfamework
Declaration
Swift
case invalidVariableType(Any)
-
Found an invalid token inside the expression
Declaration
Swift
case invalid(token: String)
-
A unknown operator was found in the expression
Declaration
Swift
case unknownOperator(name: String)