Sha256: f0b87f9429e4bc9a023aa2fb7488d3bb5f71383edab2150f015f3cc557553932
Contents?: true
Size: 812 Bytes
Versions: 17
Compression:
Stored size: 812 Bytes
Contents
# encoding: utf-8 module Moped module Failover # Ignore is for the case when we get exceptions we deem are proper user # or datbase errors and should be re-raised. # # @since 2.0.0 module Ignore extend self # Executes the failover strategy. In the case of ignore, we just re-raise # the exception that was thrown previously. # # @example Execute the ignore strategy. # Moped::Failover::Ignore.execute(exception, node) # # @param [ Exception ] exception The raised exception. # @param [ Node ] node The node the exception got raised on. # # @raise [ Exception ] The exception that was previously thrown. # # @since 2.0.0 def execute(exception, node) raise(exception) end end end end
Version data entries
17 entries across 17 versions & 2 rubygems