Exception: ConnectorsShared::JobSyncNotPossibleYetError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/connectors_shared/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, sync_will_be_possible_at: nil) ⇒ JobSyncNotPossibleYetError

Returns a new instance of JobSyncNotPossibleYetError.



75
76
77
78
79
80
81
82
# File 'lib/connectors_shared/errors.rb', line 75

def initialize(message = nil, sync_will_be_possible_at: nil)
  human_readable_errors = []

  human_readable_errors.push(message) unless message.nil?
  human_readable_errors.push("Content source was created too recently to schedule jobs, next job scheduling is possible at #{sync_will_be_possible_at}.") unless sync_will_be_possible_at.nil?

  super(human_readable_errors.join(' '))
end

Instance Attribute Details

#sync_will_be_possible_atObject

Returns the value of attribute sync_will_be_possible_at.



73
74
75
# File 'lib/connectors_shared/errors.rb', line 73

def sync_will_be_possible_at
  @sync_will_be_possible_at
end