Exception: DataPackage::SchemaException

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ SchemaException

Returns a new instance of SchemaException.



7
8
9
10
# File 'lib/datapackage/exceptions.rb', line 7

def initialize status
  @status = status
  @message = status
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/datapackage/exceptions.rb', line 5

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/datapackage/exceptions.rb', line 5

def status
  @status
end