Exception: OccamsRecord::MissingBindValuesError
- Inherits:
-
StandardError
- Object
- StandardError
- OccamsRecord::MissingBindValuesError
- Defined in:
- lib/occams-record/errors.rb
Overview
Exception raised when not enough bind values were given
Instance Method Summary collapse
-
#initialize(sql, message) ⇒ MissingBindValuesError
constructor
A new instance of MissingBindValuesError.
- #message ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(sql, message) ⇒ MissingBindValuesError
Returns a new instance of MissingBindValuesError.
4 5 6 7 |
# File 'lib/occams-record/errors.rb', line 4 def initialize(sql, ) @sql = sql = end |
Instance Method Details
#message ⇒ Object
11 |
# File 'lib/occams-record/errors.rb', line 11 def = "Missing binds (#{@message}) in #{@sql}" |
#to_s ⇒ Object
9 |
# File 'lib/occams-record/errors.rb', line 9 def to_s = |