Exception: Jade::Interop::DecodeError
- 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
-
#decode_error ⇒ Object
readonly
Returns the value of attribute decode_error.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(decode_error, value, source: :argument) ⇒ DecodeError
constructor
A new instance of DecodeError.
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_error ⇒ Object (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 |
#source ⇒ Object (readonly)
Returns the value of attribute source.
57 58 59 |
# File 'lib/jade/interop/error.rb', line 57 def source @source end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
57 58 59 |
# File 'lib/jade/interop/error.rb', line 57 def value @value end |