Sha256: 480ac11413763434bd6753dcfb80f142720f3f3183e13a472ddee4b6aec7cebc
Contents?: true
Size: 632 Bytes
Versions: 60
Compression:
Stored size: 632 Bytes
Contents
# frozen_string_literal: true class Pagy # Generic variable error class VariableError < ArgumentError attr_reader :pagy, :variable, :value # Set the variables and prepare the message def initialize(pagy, variable, description, value) @pagy = pagy @variable = variable @value = value super("expected :#{@variable} #{description}; got #{@value.inspect}") end end # Specific overflow error class OverflowError < VariableError; end # I18n configuration error class I18nError < StandardError; end # Generic internal error class InternalError < StandardError; end end
Version data entries
60 entries across 60 versions & 1 rubygems