Sha256: ee05462ef553fa5cf7da1175b29fa592e05b5af36954c1b479ab2684cce97a9f

Contents?: true

Size: 460 Bytes

Versions: 23

Compression:

Stored size: 460 Bytes

Contents

module Adeia

  class Error < StandardError; end

  class LoginRequired < Error

    def to_s
      I18n.t("exceptions.messages.login_required")
    end

  end

  class AccessDenied < Error

    def to_s
      I18n.t("exceptions.messages.access_denied")
    end

  end

  class MissingParams < Error

    def initialize(params)
      @params = params
    end

    def to_s
      I18n.t("exceptions.messages.missing_params", params: @params)
    end

  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
adeia-0.8.6 lib/adeia/exceptions.rb
adeia-0.8.5 lib/adeia/exceptions.rb
adeia-0.8.4 lib/adeia/exceptions.rb
adeia-0.8.3 lib/adeia/exceptions.rb
adeia-0.8.2 lib/adeia/exceptions.rb
adeia-0.8.1 lib/adeia/exceptions.rb
adeia-0.8.0 lib/adeia/exceptions.rb
adeia-0.7.1 lib/adeia/exceptions.rb
adeia-0.7.0 lib/adeia/exceptions.rb
adeia-0.6.2 lib/adeia/exceptions.rb
adeia-0.6.1 lib/adeia/exceptions.rb
adeia-0.6.0 lib/adeia/exceptions.rb
adeia-0.5.6 lib/adeia/exceptions.rb
adeia-0.5.5 lib/adeia/exceptions.rb
adeia-0.5.4 lib/adeia/exceptions.rb
adeia-0.5.3 lib/adeia/exceptions.rb
adeia-0.5.2 lib/adeia/exceptions.rb
adeia-0.5.1 lib/adeia/exceptions.rb
adeia-0.5.0 lib/adeia/exceptions.rb
adeia-0.4.0 lib/adeia/exceptions.rb