Exception: Npmdc::Errors::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/npmdc/errors.rb

Direct Known Subclasses

CheckerError, ConfigurationError

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  @options = options

  super(msg)
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/npmdc/errors.rb', line 4

def options
  @options
end

Instance Method Details

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/npmdc/errors.rb', line 12

def banner
  raise(NotImplementedError, '#banner has to be implemented in subclass')
end