Class: Safrano::Filter::Parser::Error
- Inherits:
-
Object
- Object
- Safrano::Filter::Parser::Error
- Defined in:
- lib/odata/filter/error.rb
Overview
Parser errors
Direct Known Subclasses
ErrorInvalidArgumentType, ErrorInvalidArity, ErrorInvalidSeparator, ErrorInvalidToken, ErrorUnmatchedClose, UnmatchedQuoteError
Constant Summary collapse
- HTTP_CODE =
400
Instance Attribute Summary collapse
-
#cur_typ ⇒ Object
readonly
Returns the value of attribute cur_typ.
-
#cur_val ⇒ Object
readonly
Returns the value of attribute cur_val.
-
#tok ⇒ Object
readonly
Returns the value of attribute tok.
-
#typ ⇒ Object
readonly
Returns the value of attribute typ.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tok, typ, cur) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(tok, typ, cur) ⇒ Error
Returns a new instance of Error.
29 30 31 32 33 34 35 36 |
# File 'lib/odata/filter/error.rb', line 29 def initialize(tok, typ, cur) @tok = tok @typ = typ return unless cur @cur_val = cur.value @cur_typ = cur.class end |
Instance Attribute Details
#cur_typ ⇒ Object (readonly)
Returns the value of attribute cur_typ.
27 28 29 |
# File 'lib/odata/filter/error.rb', line 27 def cur_typ @cur_typ end |
#cur_val ⇒ Object (readonly)
Returns the value of attribute cur_val.
26 27 28 |
# File 'lib/odata/filter/error.rb', line 26 def cur_val @cur_val end |
#tok ⇒ Object (readonly)
Returns the value of attribute tok.
24 25 26 |
# File 'lib/odata/filter/error.rb', line 24 def tok @tok end |
#typ ⇒ Object (readonly)
Returns the value of attribute typ.
25 26 27 |
# File 'lib/odata/filter/error.rb', line 25 def typ @typ end |
Class Method Details
.http_code ⇒ Object
19 20 21 |
# File 'lib/odata/filter/error.rb', line 19 def self.http_code const_get(:HTTP_CODE) end |