Module: Bones::RPC::Failover::Ignore

Extended by:
Ignore
Included in:
Ignore
Defined in:
lib/bones/rpc/failover/ignore.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#execute(exception, node) ⇒ Object

Executes the failover strategy. In the case of ignore, we just re-raise the exception that was thrown previously.

Examples:

Execute the ignore strategy.

Bones::RPC::Failover::Ignore.execute(exception, node)

Parameters:

  • exception (Exception)

    The raised exception.

  • node (Node)

    The node the exception got raised on.

Raises:

  • (Exception)

    The exception that was previously thrown.

Since:

  • 2.0.0



25
26
27
# File 'lib/bones/rpc/failover/ignore.rb', line 25

def execute(exception, node)
  raise(exception)
end