Exception: TableSchema::MultipleInvalid

Inherits:
Exception
  • Object
show all
Defined in:
lib/tableschema/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, errors = []) ⇒ MultipleInvalid

Returns a new instance of MultipleInvalid.



15
16
17
18
# File 'lib/tableschema/exceptions.rb', line 15

def initialize(message, errors=[])
  @message = message
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



13
14
15
# File 'lib/tableschema/exceptions.rb', line 13

def errors
  @errors
end

#messageObject (readonly)

Returns the value of attribute message.



13
14
15
# File 'lib/tableschema/exceptions.rb', line 13

def message
  @message
end