Exception: Clerk::Errors::Base
- Inherits:
-
StandardError
- Object
- StandardError
- Clerk::Errors::Base
- Defined in:
- lib/clerk/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(msg, status:) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(msg, status:) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 |
# File 'lib/clerk/errors.rb', line 6 def initialize(msg, status:) @errors = msg["errors"] @status = status super(msg.merge("status" => status)) end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/clerk/errors.rb', line 4 def status @status end |