Exception: RubyQC::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RubyQC::Error
- Defined in:
- lib/rubyqc/error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#times ⇒ Object
readonly
Returns the value of attribute times.
Instance Method Summary collapse
-
#initialize(times, errors) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(times, errors) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 |
# File 'lib/rubyqc/error.rb', line 5 def initialize times, errors @times, @errors = times, errors super("RubyQC::Error: #{errors.size} errors out of #{times}:" \ " #{errors.inspect}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
4 5 6 |
# File 'lib/rubyqc/error.rb', line 4 def errors @errors end |
#times ⇒ Object (readonly)
Returns the value of attribute times.
4 5 6 |
# File 'lib/rubyqc/error.rb', line 4 def times @times end |