Sha256: 782022a136d565224ebd7f702e5106ca4c321ee72803778076a72a19ddcedaf9

Contents?: true

Size: 507 Bytes

Versions: 1

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

module Lexoranking
  class LexorankingError < StandardError
  end

  # RankingScopeNotValid class
  class RankingScopeNotValid < LexorankingError
    attr_reader :record

    def initialize(message=nil, record=nil)
      @record = record
      super(message)
    end
  end

  # ModelDoNotExists class
  class ModelDoNotExists < LexorankingError
    attr_reader :record

    def initialize(message=nil, record=nil)
      @record = record
      super(message)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lexoranking-0.1.3 lib/lexoranking/errors.rb