Exception: Sumac::NativeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sumac/native_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, native_message)
  super()
  @native_type = native_type
  @native_message = native_message
end

Instance Attribute Details

#native_messageObject (readonly)

Returns the value of attribute native_message.



4
5
6
# File 'lib/sumac/native_error.rb', line 4

def native_message
  @native_message
end

#native_typeObject (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

#messageObject



12
13
14
# File 'lib/sumac/native_error.rb', line 12

def message
  "#{@native_type} -> #{@native_message}"
end