Sha256: 2deeefcd4eef97d37f63e2cd5e65c5b8ec5997b9a99f0f1dce35cb5c0ce0c4cd
Contents?: true
Size: 595 Bytes
Versions: 2
Compression:
Stored size: 595 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 class MissingUserModel < Error def to_s I18n.t("exceptions.messages.missing_user_model", params: @params) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
adeia-0.9.1 | lib/adeia/exceptions.rb |
adeia-0.9.0 | lib/adeia/exceptions.rb |