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
trueorfalseis 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
namecould not be found in thecontextDeclaration
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)
View on GitHub
PhraseError Enumeration Reference