Skip to content

Commit

Permalink
Clarified error types
Browse files Browse the repository at this point in the history
  • Loading branch information
springcomp authored Mar 25, 2023
1 parent aa35cb8 commit 0292489
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions GRAMMAR.ABNF
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@
;; Implementations can map the corresponding JSON types to their language equivalent. For example, a JSON null could map to
;; None in python, and nil in ruby and go.
;;
;; # Errors
;;
;; Errors may be raised during the JMEspath evaluation process. How and when errors are raised is implementation specific,
;; but implementations should indicate to the caller when errors have occurred.
;;
;; The following errors are defined:
;;
;; - `invalid-arity` is raised when an invalid number of function arguments is encountered during the evaluation process.
;; - `invalid-type` is raised when an invalid type is encountered during the evaluation process.
;; - `invalid-value` is raised when an invalid value is encountered during the evaluation process.
;; - `not-a-number` is raised when arithmetic expressions overflow.
;; - `unknown-function` is raised when an unknown function is encountered during the evaluation process.
;;
;; # Grammar
;;
;; JMESPath grammar is specified using ABNF, as described in RFC4234
Expand Down

0 comments on commit 0292489

Please sign in to comment.