on-strum/ruby-on-strum-healthcheck

View on GitHub
lib/on_strum/healthcheck/error/configuration/http_status_failure.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module OnStrum
  module Healthcheck
    module Error
      module Configuration
        HttpStatusFailure = ::Class.new(::ArgumentError) do
          def initialize(arg_value, arg_name)
            super("Status #{arg_value} is wrong HTTP failure status for #{arg_name}. It should be in the range 500-511")
          end
        end
      end
    end
  end
end