Exception: OBarc::Utils::Exceptions::OverLimitError

Inherits:
OBarcError
  • Object
show all
Defined in:
lib/obarc/utils/exceptions.rb

Instance Attribute Summary

Attributes inherited from OBarcError

#message

Instance Method Summary (collapse)

Constructor Details

- (OverLimitError) initialize(name, limit, unit)

Returns a new instance of OverLimitError



47
48
49
# File 'lib/obarc/utils/exceptions.rb', line 47

def initialize(name, limit, unit)
  super("#{name} must have at most #{limit} #{unit}")
end