InvalidLiteralException
Thrown by it.unibo.tuprolog.datalog.asLiteral when a Term cannot be interpreted as a Prolog/Datalog literal (a callable goal): only a it.unibo.tuprolog.core.Struct or a it.unibo.tuprolog.core.Var can occur as a literal (the latter is wrapped into a call/1 goal), so e.g. a bare number or list argument found where a body goal or head was expected triggers this exception.