Exception: CArray::JIT::Unsupported
- Defined in:
- lib/carray/jit/errors.rb
Overview
Raised when a kernel falls outside the recognized subset. Callers that want the Ruby evaluator instead of a hard failure rescue this.
Instance Attribute Summary collapse
-
#location ⇒ Prism::Location?
readonly
Where in the block the construct is, or
nilwhen the message names no place.
Instance Method Summary collapse
-
#initialize(message, location = nil) ⇒ Unsupported
constructor
A new instance of Unsupported.
Constructor Details
#initialize(message, location = nil) ⇒ Unsupported
Returns a new instance of Unsupported.
19 20 21 22 23 24 25 26 |
# File 'lib/carray/jit/errors.rb', line 19 def initialize (, location = nil) @location = location if location super("#{} (at line #{location.start_line}, column #{location.start_column})") else super() end end |
Instance Attribute Details
#location ⇒ Prism::Location? (readonly)
Returns where in the block the construct is, or
nil when the message names no place.
14 15 16 |
# File 'lib/carray/jit/errors.rb', line 14 def location @location end |