module Roqua::Healthy
Constants
- ERRORS
- VERSION
healthy version
Attributes
a19_endpoint[RW]
Public Class Methods
convert_generic_errors_to_healthy_errors() { || ... }
click to toggle source
# File lib/roqua/healthy/errors.rb, line 23 def self.convert_generic_errors_to_healthy_errors yield rescue RestClient::Exceptions::ReadTimeout, RestClient::Exceptions::OpenTimeout => error raise ::Roqua::Healthy::Timeout, error.message rescue ::Timeout::Error => error raise ::Roqua::Healthy::Timeout, error.message rescue Errno::ETIMEDOUT => error raise ::Roqua::Healthy::Timeout, error.message rescue Errno::EHOSTUNREACH => error raise ::Roqua::Healthy::HostUnreachable, error.message rescue Errno::ECONNREFUSED => error raise ::Roqua::Healthy::ConnectionRefused, error.message end