Exception: Jade::Interop::DecodeError

Inherits:
Error
  • Object
show all
Defined in:
lib/jade/interop/error.rb

Constant Summary collapse

SUBJECTS =
{
  argument: 'Ruby passed a value that failed to decode',
  port_return: 'Port returned a value that failed to decode',
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(decode_error, value, source: :argument) ⇒ DecodeError

Returns a new instance of DecodeError.



64
65
66
67
68
69
# File 'lib/jade/interop/error.rb', line 64

def initialize(decode_error, value, source: :argument)
  @decode_error = decode_error
  @value = value
  @source = source
  super(format(decode_error, value))
end

Instance Attribute Details

#decode_errorObject (readonly)

Returns the value of attribute decode_error.



57
58
59
# File 'lib/jade/interop/error.rb', line 57

def decode_error
  @decode_error
end

#sourceObject (readonly)

Returns the value of attribute source.



57
58
59
# File 'lib/jade/interop/error.rb', line 57

def source
  @source
end

#valueObject (readonly)

Returns the value of attribute value.



57
58
59
# File 'lib/jade/interop/error.rb', line 57

def value
  @value
end