Exception: Rodauth::InternalRequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rodauth/features/internal_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ InternalRequestError

Returns a new instance of InternalRequestError.



13
14
15
16
17
18
19
20
21
# File 'lib/rodauth/features/internal_request.rb', line 13

def initialize(attrs)
  return super if attrs.is_a?(String)

  @flash = attrs[:flash]
  @reason = attrs[:reason]
  @field_errors = attrs[:field_errors] || {}

  super(build_message)
end

Instance Attribute Details

#field_errorsObject

Returns the value of attribute field_errors.



11
12
13
# File 'lib/rodauth/features/internal_request.rb', line 11

def field_errors
  @field_errors
end

#flashObject

Returns the value of attribute flash.



9
10
11
# File 'lib/rodauth/features/internal_request.rb', line 9

def flash
  @flash
end

#reasonObject

Returns the value of attribute reason.



10
11
12
# File 'lib/rodauth/features/internal_request.rb', line 10

def reason
  @reason
end