Exception: CIMI::Model::NotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cimi/models/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNotFound

Returns a new instance of NotFound.



21
22
23
24
# File 'lib/cimi/models/errors.rb', line 21

def initialize
  super("Requested Entity Not Found")
  self.code = 404
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



19
20
21
# File 'lib/cimi/models/errors.rb', line 19

def code
  @code
end