Exception: Utility::JobSyncNotPossibleYetError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/utility/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.



66
67
68
69
70
71
72
73
# File 'lib/utility/errors.rb', line 66

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.



64
65
66
# File 'lib/utility/errors.rb', line 64

def sync_will_be_possible_at
  @sync_will_be_possible_at
end