Exception: Origami::Filter::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/origami/filters.rb

Overview

Base class for filter Exceptions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, input_data: nil, decoded_data: nil) ⇒ Error

Returns a new instance of Error.


52
53
54
55
56
# File 'lib/origami/filters.rb', line 52

def initialize(message, input_data: nil, decoded_data: nil)
    super(message)

    @input_data, @decoded_data = input_data, decoded_data
end

Instance Attribute Details

#decoded_dataObject

Returns the value of attribute decoded_data


50
51
52
# File 'lib/origami/filters.rb', line 50

def decoded_data
  @decoded_data
end

#input_dataObject

Returns the value of attribute input_data


50
51
52
# File 'lib/origami/filters.rb', line 50

def input_data
  @input_data
end