Class: HyperCast::Fault
- Inherits:
-
Data
- Object
- Data
- HyperCast::Fault
- Defined in:
- lib/hypercast.rb
Overview
The failure case: a closed reason Symbol (:empty, :malformed, :out_of_range) plus the offending span as byte offsets into the UTF-8 input. Nothing is captured — slicing the offending text out of the input is the caller's choice.
Instance Attribute Summary collapse
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Attribute Details
#length ⇒ Object (readonly)
Returns the value of attribute length
34 35 36 |
# File 'lib/hypercast.rb', line 34 def length @length end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset
34 35 36 |
# File 'lib/hypercast.rb', line 34 def offset @offset end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
34 35 36 |
# File 'lib/hypercast.rb', line 34 def reason @reason end |