Exception: Rodauth::InternalRequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Rodauth::InternalRequestError
- Defined in:
- lib/rodauth/features/internal_request.rb
Instance Attribute Summary collapse
-
#field_errors ⇒ Object
Returns the value of attribute field_errors.
-
#flash ⇒ Object
Returns the value of attribute flash.
-
#reason ⇒ Object
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ InternalRequestError
constructor
A new instance of InternalRequestError.
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() end |
Instance Attribute Details
#field_errors ⇒ Object
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 |
#flash ⇒ Object
Returns the value of attribute flash.
9 10 11 |
# File 'lib/rodauth/features/internal_request.rb', line 9 def flash @flash end |
#reason ⇒ Object
Returns the value of attribute reason.
10 11 12 |
# File 'lib/rodauth/features/internal_request.rb', line 10 def reason @reason end |