Exception: UcbOrgs::SyncError
- Inherits:
-
StandardError
- Object
- StandardError
- UcbOrgs::SyncError
- Defined in:
- lib/ucb_orgs/syncer.rb
Instance Attribute Summary collapse
-
#item ⇒ Object
readonly
Returns the value of attribute item.
-
#source_error ⇒ Object
readonly
Returns the value of attribute source_error.
Instance Method Summary collapse
- #error_details ⇒ Object
-
#initialize(item, source_error) ⇒ SyncError
constructor
A new instance of SyncError.
Constructor Details
#initialize(item, source_error) ⇒ SyncError
Returns a new instance of SyncError.
6 7 8 9 |
# File 'lib/ucb_orgs/syncer.rb', line 6 def initialize(item, source_error) @item = item @source_error = source_error end |
Instance Attribute Details
#item ⇒ Object (readonly)
Returns the value of attribute item.
3 4 5 |
# File 'lib/ucb_orgs/syncer.rb', line 3 def item @item end |
#source_error ⇒ Object (readonly)
Returns the value of attribute source_error.
4 5 6 |
# File 'lib/ucb_orgs/syncer.rb', line 4 def source_error @source_error end |
Instance Method Details
#error_details ⇒ Object
11 12 13 |
# File 'lib/ucb_orgs/syncer.rb', line 11 def error_details "#{source_error} : #{source_error.backtrace.first}" end |