Exception: Clerk::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Clerk::Error
- Defined in:
- lib/clerk/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(msg, status:) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg, status:) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 |
# File 'lib/clerk/error.rb', line 5 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.
3 4 5 |
# File 'lib/clerk/error.rb', line 3 def status @status end |