Exception: UcbOrgs::SyncError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ucb_orgs/syncer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#itemObject (readonly)

Returns the value of attribute item.



3
4
5
# File 'lib/ucb_orgs/syncer.rb', line 3

def item
  @item
end

#source_errorObject (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_detailsObject



11
12
13
# File 'lib/ucb_orgs/syncer.rb', line 11

def error_details
  "#{source_error} : #{source_error.backtrace.first}"
end