Exception: Longfellow::NativeError
- Defined in:
- lib/longfellow/errors.rb
Overview
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(symbol, code, context) ⇒ NativeError
constructor
A new instance of NativeError.
Constructor Details
#initialize(symbol, code, context) ⇒ NativeError
Returns a new instance of NativeError.
12 13 14 15 16 |
# File 'lib/longfellow/errors.rb', line 12 def initialize(symbol, code, context) @symbol = symbol @code = code super("#{context} failed: #{symbol} (code #{code})") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/longfellow/errors.rb', line 10 def code @code end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
10 11 12 |
# File 'lib/longfellow/errors.rb', line 10 def symbol @symbol end |