-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Extract query parser errors to dedicated file (#1035)
- Loading branch information
1 parent
81c54ad
commit fe72e71
Showing
5 changed files
with
45 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright 2022 Democratized Data Foundation | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
package parser | ||
|
||
import "github.com/sourcenetwork/defradb/errors" | ||
|
||
var ( | ||
ErrFilterMissingArgumentType = errors.New("couldn't find filter argument type") | ||
ErrInvalidOrderDirection = errors.New("invalid order direction string") | ||
ErrFailedToParseConditionsFromAST = errors.New("couldn't parse conditions value from AST") | ||
ErrFailedToParseConditionValue = errors.New("failed to parse condition value from query filter statement") | ||
ErrEmptyDataPayload = errors.New("given data payload is empty") | ||
ErrUnknownMutationName = errors.New("unknown mutation name") | ||
ErrUnknownGQLOperation = errors.New("unknown GraphQL operation type") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters