Exception: ShEx::NotMatched
Overview
TripleExpression did not match
Instance Attribute Summary collapse
-
#expression ⇒ ShEx::Algebra::TripleExpression
readonly
The expression which was not satified.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, expression: self) ⇒ NotMatched
constructor
Initializes a new parser error instance.
- #inspect ⇒ Object
Constructor Details
#initialize(message, expression: self) ⇒ NotMatched
Initializes a new parser error instance.
166 167 168 169 |
# File 'lib/shex.rb', line 166 def initialize(, expression: self) @expression = expression super(.to_s) end |
Instance Attribute Details
#expression ⇒ ShEx::Algebra::TripleExpression (readonly)
The expression which was not satified
159 160 161 |
# File 'lib/shex.rb', line 159 def expression @expression end |
Instance Method Details
#inspect ⇒ Object
171 172 173 |
# File 'lib/shex.rb', line 171 def inspect super + (expression ? SXP::Generator.string(expression.to_sxp_bin) : '') end |