Exception: Booker::MidPaginationError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message: "Error occurred during call mid-pagination", error_occurred_during_params: {}, results_fetched_prior_to_error: []) ⇒ MidPaginationError

Returns a new instance of MidPaginationError.



25
26
27
28
29
# File 'lib/booker/errors.rb', line 25

def initialize(message: "Error occurred during call mid-pagination", error_occurred_during_params: {}, results_fetched_prior_to_error: [])
  self.error_occurred_during_params = error_occurred_during_params
  self.results_fetched_prior_to_error = results_fetched_prior_to_error
  self.message = message
end

Instance Attribute Details

#error_occurred_during_paramsObject

Returns the value of attribute error_occurred_during_params.



23
24
25
# File 'lib/booker/errors.rb', line 23

def error_occurred_during_params
  @error_occurred_during_params
end

#messageObject

Returns the value of attribute message.



23
24
25
# File 'lib/booker/errors.rb', line 23

def message
  @message
end

#results_fetched_prior_to_errorObject

Returns the value of attribute results_fetched_prior_to_error.



23
24
25
# File 'lib/booker/errors.rb', line 23

def results_fetched_prior_to_error
  @results_fetched_prior_to_error
end