Class: Transproc::MalformedInputError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#functionObject (readonly)

Returns the value of attribute function.



13
14
15
# File 'lib/transproc/error.rb', line 13

def function
  @function
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



13
14
15
# File 'lib/transproc/error.rb', line 13

def original_error
  @original_error
end

#valueObject (readonly)

Returns the value of attribute value.



13
14
15
# File 'lib/transproc/error.rb', line 13

def value
  @value
end