Sha256: bf265cc3b4b5f8c27fea104f631abeee662d2aef6449101176a090d618fbcc05

Contents?: true

Size: 312 Bytes

Versions: 56

Compression:

Stored size: 312 Bytes

Contents

module Kadmin
  module Auth
    class UnauthorizedError < Kadmin::Error
      # Attempts to translate message, if not found returns message as a string
      def message
        I18n.t(@message, default: @message)
      end

      def title
        I18n.t('kadmin.auth.unauthorized')
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
kadmin-1.3.0 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.2.1 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.2.0 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.1.1 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.1.0 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.0.9 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.0.8 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.0.7 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.0.6 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.0.5 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.0.4 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.0.3 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.0.2 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.0.1 lib/kadmin/auth/unauthorized_error.rb
kadmin-1.0.0 lib/kadmin/auth/unauthorized_error.rb
kadmin-0.9.5 lib/kadmin/auth/unauthorized_error.rb
kadmin-0.9.4 lib/kadmin/auth/unauthorized_error.rb
kadmin-0.8.0 lib/kadmin/auth/unauthorized_error.rb
kadmin-0.7.5 lib/kadmin/auth/unauthorized_error.rb
kadmin-0.7.4 lib/kadmin/auth/unauthorized_error.rb