Exception: ColumnNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/makesheets/exceptions/validate.rb

Overview

Makesheets specific exception classes

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnObject (readonly)

Returns the value of attribute column.



4
5
6
# File 'lib/makesheets/exceptions/validate.rb', line 4

def column
  @column
end

#filenameObject (readonly)

Returns the value of attribute filename.



4
5
6
# File 'lib/makesheets/exceptions/validate.rb', line 4

def filename
  @filename
end