Exception: Npmdc::Errors::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Npmdc::Errors::Error
- Defined in:
- lib/npmdc/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #banner ⇒ Object
-
#initialize(msg = nil, **options) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg = nil, **options) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 |
# File 'lib/npmdc/errors.rb', line 6 def initialize(msg = nil, **) @options = super(msg) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/npmdc/errors.rb', line 4 def @options end |
Instance Method Details
#banner ⇒ Object
12 13 14 |
# File 'lib/npmdc/errors.rb', line 12 def raise(NotImplementedError, '#banner has to be implemented in subclass') end |