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.



9
10
11
12
13
14
15
# File 'lib/transproc/error.rb', line 9

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.



7
8
9
# File 'lib/transproc/error.rb', line 7

def function
  @function
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



7
8
9
# File 'lib/transproc/error.rb', line 7

def original_error
  @original_error
end

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/transproc/error.rb', line 7

def value
  @value
end