Exception: ShEx::NotSatisfied
Overview
Shape expectation not satisfied
Instance Attribute Summary collapse
-
#expression ⇒ ShEx::Algebra::ShapeExpression
readonly
The expression which was not satified.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, expression: self) ⇒ NotSatisfied
constructor
Initializes a new parser error instance.
- #inspect ⇒ Object
Constructor Details
#initialize(message, expression: self) ⇒ NotSatisfied
Initializes a new parser error instance.
141 142 143 144 |
# File 'lib/shex.rb', line 141 def initialize(, expression: self) @expression = expression super(.to_s) end |
Instance Attribute Details
#expression ⇒ ShEx::Algebra::ShapeExpression (readonly)
The expression which was not satified
134 135 136 |
# File 'lib/shex.rb', line 134 def expression @expression end |
Instance Method Details
#inspect ⇒ Object
146 147 148 |
# File 'lib/shex.rb', line 146 def inspect super + (expression ? SXP::Generator.string(expression.to_sxp_bin) : '') end |