Exception: Shellfie::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Shellfie::Error
- Defined in:
- lib/shellfie/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(message = nil, category: nil, context: {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, category: nil, context: {}) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 |
# File 'lib/shellfie/errors.rb', line 7 def initialize( = nil, category: nil, context: {}) @category = category @context = context.freeze super() end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
5 6 7 |
# File 'lib/shellfie/errors.rb', line 5 def category @category end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
5 6 7 |
# File 'lib/shellfie/errors.rb', line 5 def context @context end |