Exception: OccamsRecord::MissingColumnError
- Inherits:
-
MissingDataError
- Object
- StandardError
- MissingDataError
- OccamsRecord::MissingColumnError
- Defined in:
- lib/occams-record/errors.rb
Overview
Exception when an unselected column is called on a result row
Instance Attribute Summary
Attributes inherited from MissingDataError
Instance Method Summary collapse
Methods inherited from MissingDataError
Constructor Details
This class inherits a constructor from OccamsRecord::MissingDataError
Instance Method Details
#message ⇒ String
28 29 30 31 |
# File 'lib/occams-record/errors.rb', line 28 def loads = @load_trace.to_s "Column '#{name}' is unavailable on #{model_name} because it was not included in the SELECT statement! Occams Record trace: #{loads}" end |