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.



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

def initialize(function, value, error)
  @function = function
  @value = value
  @original_error = error
  super("failed to call function #{function} on #{value}, #{error}")
end

Instance Attribute Details

#functionObject (readonly)

Returns the value of attribute function.



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

def function
  @function
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



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

def original_error
  @original_error
end

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end