Exception: Sumac::NativeError
- Defined in:
- lib/sumac/native_error.rb
Instance Attribute Summary collapse
-
#native_message ⇒ Object
readonly
Returns the value of attribute native_message.
-
#native_type ⇒ Object
readonly
Returns the value of attribute native_type.
Instance Method Summary collapse
-
#initialize(native_type, native_message) ⇒ NativeError
constructor
A new instance of NativeError.
- #message ⇒ Object
Constructor Details
#initialize(native_type, native_message) ⇒ NativeError
Returns a new instance of NativeError.
6 7 8 9 10 |
# File 'lib/sumac/native_error.rb', line 6 def initialize(native_type, ) super() @native_type = native_type @native_message = end |
Instance Attribute Details
#native_message ⇒ Object (readonly)
Returns the value of attribute native_message.
4 5 6 |
# File 'lib/sumac/native_error.rb', line 4 def @native_message end |
#native_type ⇒ Object (readonly)
Returns the value of attribute native_type.
4 5 6 |
# File 'lib/sumac/native_error.rb', line 4 def native_type @native_type end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/sumac/native_error.rb', line 12 def "#{@native_type} -> #{@native_message}" end |