Exception: Utility::JobSyncNotPossibleYetError
- Inherits:
-
StandardError
- Object
- StandardError
- Utility::JobSyncNotPossibleYetError
- Defined in:
- lib/utility/errors.rb
Instance Attribute Summary collapse
-
#sync_will_be_possible_at ⇒ Object
Returns the value of attribute sync_will_be_possible_at.
Instance Method Summary collapse
-
#initialize(message = nil, sync_will_be_possible_at: nil) ⇒ JobSyncNotPossibleYetError
constructor
A new instance of JobSyncNotPossibleYetError.
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( = nil, sync_will_be_possible_at: nil) human_readable_errors = [] human_readable_errors.push() unless .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_at ⇒ Object
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 |