Exception: OccamsRecord::MissingColumnError

Inherits:
MissingDataError show all
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

#model_name, #name, #record

Instance Method Summary collapse

Methods inherited from MissingDataError

#initialize

Constructor Details

This class inherits a constructor from OccamsRecord::MissingDataError

Instance Method Details

#messageString



22
23
24
# File 'lib/occams-record/errors.rb', line 22

def message
  "Column '#{name}' is unavailable on #{model_name} because it was not included in the SELECT statement!"
end