Sha256: 1f40eac2f7efc02193e0e02903558e5874c476bb6a055532e9d09b1567bc5577

Contents?: true

Size: 273 Bytes

Versions: 5

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

module OnStrum
  module Logs
    module Error
      ArgumentType = ::Class.new(::ArgumentError) do
        def initialize(arg_value, arg_name)
          super("#{arg_value} is not a valid #{arg_name}")
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
on_strum-logs-1.0.0 lib/on_strum/logs/error/argument_type.rb
on_strum-logs-0.3.0 lib/on_strum/logs/error/argument_type.rb
on_strum-logs-0.2.0 lib/on_strum/logs/error/argument_type.rb
on_strum-logs-0.1.1 lib/on_strum/logs/error/argument_type.rb
on_strum-logs-0.1.0 lib/on_strum/logs/error/argument_type.rb