Exception: Common::EntityError

Inherits:
CloudboxError show all
Defined in:
lib/common/cloudbox_exceptions.rb

Overview

This error class represents a CRUD error on an entity

Direct Known Subclasses

AlreadyExistsEntity

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, name, msg = nil) ⇒ EntityError

Returns a new instance of EntityError.



40
41
42
43
44
# File 'lib/common/cloudbox_exceptions.rb', line 40

def initialize(type, name, msg = nil)
  super(msg)
  @type = type
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Name of the entity



37
38
39
# File 'lib/common/cloudbox_exceptions.rb', line 37

def name
  @name
end

#typeObject (readonly)

Type of the entity



33
34
35
# File 'lib/common/cloudbox_exceptions.rb', line 33

def type
  @type
end