Sha256: db1a2d7f51d82790756b8605a34e7f1d9c6b81a79646d9623a77f875d6c0355d

Contents?: true

Size: 621 Bytes

Versions: 162

Compression:

Stored size: 621 Bytes

Contents

# Helper class to create a custom `ErrorHandler`
# @example Example of usage:
#  class Custom::ErrorHandler::EmailTaken < Eco::API::Custom::ErrorHandler
#    error Eco::API::Error::EmailTaken
#
#    def main(people, session, options, handler, job)
#      people.each do |person|
#        prev_email = person.initial_doc["email"]
#        if person.email != prev_email
#          person.email = prev_email
#        else
#          person.account = nil
#        end
#        job.add(person)
#      end
#    end
#  end
#
class Eco::API::Custom::ErrorHandler < Eco::API::Common::Loaders::ErrorHandler
end

Version data entries

162 entries across 162 versions & 1 rubygems

Version Path
eco-helpers-2.4.4 lib/eco/api/custom/error_handler.rb
eco-helpers-2.4.3 lib/eco/api/custom/error_handler.rb
eco-helpers-2.4.2 lib/eco/api/custom/error_handler.rb
eco-helpers-2.3.3 lib/eco/api/custom/error_handler.rb
eco-helpers-2.3.2 lib/eco/api/custom/error_handler.rb
eco-helpers-2.2.5 lib/eco/api/custom/error_handler.rb
eco-helpers-2.2.4 lib/eco/api/custom/error_handler.rb
eco-helpers-2.2.3 lib/eco/api/custom/error_handler.rb
eco-helpers-2.2.2 lib/eco/api/custom/error_handler.rb
eco-helpers-2.2.1 lib/eco/api/custom/error_handler.rb
eco-helpers-2.1.12 lib/eco/api/custom/error_handler.rb
eco-helpers-2.1.11 lib/eco/api/custom/error_handler.rb
eco-helpers-2.1.10 lib/eco/api/custom/error_handler.rb
eco-helpers-2.1.9 lib/eco/api/custom/error_handler.rb
eco-helpers-2.1.8 lib/eco/api/custom/error_handler.rb
eco-helpers-2.1.7 lib/eco/api/custom/error_handler.rb
eco-helpers-2.1.6 lib/eco/api/custom/error_handler.rb
eco-helpers-2.1.5 lib/eco/api/custom/error_handler.rb
eco-helpers-2.1.4 lib/eco/api/custom/error_handler.rb
eco-helpers-2.1.3 lib/eco/api/custom/error_handler.rb