Exception: Etna::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Etna::Error
- Defined in:
- lib/etna/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(msg = 'The application had an error', status = 500) ⇒ Error
constructor
A new instance of Error.
Constructor Details
Instance Attribute Details
#level ⇒ Object (readonly)
Returns the value of attribute level.
5 6 7 |
# File 'lib/etna/errors.rb', line 5 def level @level end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/etna/errors.rb', line 5 def status @status end |