Class: Transproc::MalformedInputError
Instance Attribute Summary collapse
-
#function ⇒ Object
readonly
Returns the value of attribute function.
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(function, value, error) ⇒ MalformedInputError
constructor
A new instance of MalformedInputError.
Constructor Details
#initialize(function, value, error) ⇒ MalformedInputError
Returns a new instance of MalformedInputError.
15 16 17 18 19 20 21 |
# File 'lib/transproc/error.rb', line 15 def initialize(function, value, error) @function = function @value = value @original_error = error super "Failed to call_function #{function} with #{value.inspect} - #{error}" set_backtrace(error.backtrace) end |
Instance Attribute Details
#function ⇒ Object (readonly)
Returns the value of attribute function.
13 14 15 |
# File 'lib/transproc/error.rb', line 13 def function @function end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
13 14 15 |
# File 'lib/transproc/error.rb', line 13 def original_error @original_error end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
13 14 15 |
# File 'lib/transproc/error.rb', line 13 def value @value end |