Exception: TriCoreDB::ParameterError
- Defined in:
- lib/tricoredb/errors.rb
Overview
A SQL parameter this driver will not encode. Raised before anything is sent.
Instance Attribute Summary collapse
-
#index ⇒ Integer
readonly
The 1-based parameter position.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(index, message) ⇒ ParameterError
constructor
A new instance of ParameterError.
Methods inherited from Error
Constructor Details
#initialize(index, message) ⇒ ParameterError
Returns a new instance of ParameterError.
91 92 93 94 |
# File 'lib/tricoredb/errors.rb', line 91 def initialize(index, ) super("parameter ##{index}: #{}") @index = index end |
Instance Attribute Details
#index ⇒ Integer (readonly)
Returns the 1-based parameter position.
89 90 91 |
# File 'lib/tricoredb/errors.rb', line 89 def index @index end |