Exception: Statsample::DatasetException
- Defined in:
- lib/statsample/dataset.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#ds ⇒ Object
readonly
Returns the value of attribute ds.
-
#exp ⇒ Object
readonly
Returns the value of attribute exp.
Instance Method Summary collapse
-
#initialize(ds, e) ⇒ DatasetException
constructor
A new instance of DatasetException.
- #to_s ⇒ Object
Constructor Details
#initialize(ds, e) ⇒ DatasetException
Returns a new instance of DatasetException.
22 23 24 25 |
# File 'lib/statsample/dataset.rb', line 22 def initialize(ds,e) @ds=ds @exp=e end |
Instance Attribute Details
#ds ⇒ Object (readonly)
Returns the value of attribute ds.
21 22 23 |
# File 'lib/statsample/dataset.rb', line 21 def ds @ds end |
#exp ⇒ Object (readonly)
Returns the value of attribute exp.
21 22 23 |
# File 'lib/statsample/dataset.rb', line 21 def exp @exp end |
Instance Method Details
#to_s ⇒ Object
26 27 28 29 30 |
# File 'lib/statsample/dataset.rb', line 26 def to_s m="Error on iteration: "+@exp.+"\n"+@exp.backtrace.join("\n") m+="\nRow ##{@ds.i}:#{@ds.case_as_hash(@ds.i)}" unless @ds.i.nil? m end |