use super::*;
#[derive(Debug, Clone, PartialEq, Eq, derive_more::From)]
pub enum PQLErrorKind {
SyntaxError(SyntaxError),
ParseError(ParseError),
RangeError(RangeError),
UnrecognizedFunction,
UnrecognizedIdentifier,
TypeError {
given: PQLType,
expected: PQLType,
},
WrongNumberOfArguments {
given: usize,
expected: usize,
},
#[from(skip)]
ArithmeticOperationUnsupported {
lhs: PQLType,
rhs: PQLType,
},
#[from(skip)]
ComparisonOperationUnsupported {
lhs: PQLType,
rhs: PQLType,
},
#[from(skip)]
LogicalOperationUnsupported {
lhs: PQLType,
rhs: PQLType,
},
ExceededMaximumPlayers(usize),
InvalidPlayer,
InvalidDeadcards,
InvalidCardCount,
Internal(InternalError),
Runtime(RuntimeError),
Vm(VmError),
}