Sha256: 61401531e3f6f25e5cff414373bc5452adebf59a6c1cb08c10652d9f9c94aec0

Contents?: true

Size: 301 Bytes

Versions: 12

Compression:

Stored size: 301 Bytes

Contents

# -*- encoding : utf-8 -*-
module RademadeAdmin
  class Login
    class Error < Exception

      attr_accessor :field

      def initialize(message, field)
        super message
        @field = field
      end

      def field_messages
        { field.to_sym => message }
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rademade_admin-0.2.2 app/services/login/error.rb
rademade_admin-0.2.1 app/services/login/error.rb
rademade_admin-0.2.0 app/services/login/error.rb
rademade_admin-0.1.6 app/services/login/error.rb
rademade_admin-0.1.5 app/services/login/error.rb
rademade_admin-0.1.4 app/services/login/error.rb
rademade_admin-0.1.3 app/services/login/error.rb
rademade_admin-0.1.2 app/services/login/error.rb
rademade_admin-0.1.1 app/services/login/error.rb
rademade_admin-0.1.0 app/services/login/error.rb
rademade_admin-0.0.3 app/services/login/error.rb
rademade_admin-0.0.2 app/services/login/error.rb