Exception: ColumnNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- ColumnNotFoundError
- Defined in:
- lib/makesheets/exceptions/validate.rb
Overview
Makesheets specific exception classes
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(column, filename, msg = "[Error]: Queryable Excel column does not exist") ⇒ ColumnNotFoundError
constructor
A new instance of ColumnNotFoundError.
Constructor Details
#initialize(column, filename, msg = "[Error]: Queryable Excel column does not exist") ⇒ ColumnNotFoundError
Returns a new instance of ColumnNotFoundError.
6 7 8 9 10 11 |
# File 'lib/makesheets/exceptions/validate.rb', line 6 def initialize(column, filename, msg="[Error]: Queryable Excel column does not exist") @column = column @filename = filename super(msg) end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
4 5 6 |
# File 'lib/makesheets/exceptions/validate.rb', line 4 def column @column end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
4 5 6 |
# File 'lib/makesheets/exceptions/validate.rb', line 4 def filename @filename end |