Exception: MassRecord::Actions::IndividualError
- Inherits:
-
Exception
- Object
- Exception
- MassRecord::Actions::IndividualError
- Defined in:
- lib/mass_record.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
Returns the value of attribute backtrace.
-
#backtrace_locations ⇒ Object
Returns the value of attribute backtrace_locations.
-
#cause ⇒ Object
Returns the value of attribute cause.
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#json_object ⇒ Object
Returns the value of attribute json_object.
-
#message ⇒ Object
Returns the value of attribute message.
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#original_exception ⇒ Object
Returns the value of attribute original_exception.
-
#table ⇒ Object
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(exception, json_object: nil, operation: nil, table: nil) ⇒ IndividualError
constructor
A new instance of IndividualError.
- #to_s ⇒ Object
Constructor Details
#initialize(exception, json_object: nil, operation: nil, table: nil) ⇒ IndividualError
Returns a new instance of IndividualError.
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/mass_record.rb', line 36 def initialize exception, json_object:nil, operation:nil, table:nil self.backtrace = exception.backtrace self.backtrace_locations = exception.backtrace_locations self.cause = exception.cause self.exception = exception.exception self. = exception. self.original_exception = exception self.json_object = json_object self.operation = operation self.table = table end |
Instance Attribute Details
#backtrace ⇒ Object
Returns the value of attribute backtrace.
34 35 36 |
# File 'lib/mass_record.rb', line 34 def backtrace @backtrace end |
#backtrace_locations ⇒ Object
Returns the value of attribute backtrace_locations.
34 35 36 |
# File 'lib/mass_record.rb', line 34 def backtrace_locations @backtrace_locations end |
#cause ⇒ Object
Returns the value of attribute cause.
34 35 36 |
# File 'lib/mass_record.rb', line 34 def cause @cause end |
#exception ⇒ Object
Returns the value of attribute exception.
34 35 36 |
# File 'lib/mass_record.rb', line 34 def exception @exception end |
#json_object ⇒ Object
Returns the value of attribute json_object.
34 35 36 |
# File 'lib/mass_record.rb', line 34 def json_object @json_object end |
#message ⇒ Object
Returns the value of attribute message.
34 35 36 |
# File 'lib/mass_record.rb', line 34 def @message end |
#operation ⇒ Object
Returns the value of attribute operation.
34 35 36 |
# File 'lib/mass_record.rb', line 34 def operation @operation end |
#original_exception ⇒ Object
Returns the value of attribute original_exception.
34 35 36 |
# File 'lib/mass_record.rb', line 34 def original_exception @original_exception end |
#table ⇒ Object
Returns the value of attribute table.
34 35 36 |
# File 'lib/mass_record.rb', line 34 def table @table end |
Instance Method Details
#to_s ⇒ Object
49 50 51 |
# File 'lib/mass_record.rb', line 49 def to_s original_exception.to_s end |