-
Notifications
You must be signed in to change notification settings - Fork 7
/
error.go
32 lines (29 loc) · 1.82 KB
/
error.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package mql
import "errors"
var (
ErrInternal = errors.New("internal error")
ErrInvalidParameter = errors.New("invalid parameter")
ErrInvalidNotEqual = errors.New(`invalid "!=" token`)
ErrMissingExpr = errors.New("missing expression")
ErrUnexpectedExpr = errors.New("unexpected expression")
ErrUnexpectedClosingParen = errors.New("unexpected closing paren")
ErrMissingClosingParen = errors.New("missing closing paren")
ErrUnexpectedOpeningParen = errors.New("unexpected opening paren")
ErrUnexpectedLogicalOp = errors.New("unexpected logical operator")
ErrUnexpectedToken = errors.New("unexpected token")
ErrInvalidComparisonOp = errors.New("invalid comparison operator")
ErrMissingComparisonOp = errors.New("missing comparison operator")
ErrMissingColumn = errors.New("missing column")
ErrInvalidLogicalOp = errors.New("invalid logical operator")
ErrMissingLogicalOp = errors.New("missing logical operator")
ErrMissingRightSideExpr = errors.New("logical operator without a right side expr")
ErrMissingComparisonValue = errors.New("missing comparison value")
ErrInvalidColumn = errors.New("invalid column")
ErrInvalidNumber = errors.New("invalid number")
ErrInvalidComparisonValueType = errors.New("invalid comparison value type")
ErrMissingEndOfStringTokenDelimiter = errors.New("missing end of stringToken delimiter")
ErrInvalidTrailingBackslash = errors.New("invalid trailing backslash")
ErrInvalidDelimiter = errors.New("invalid delimiter")
)