Exception: Common::EntityError
- Inherits:
-
CloudboxError
- Object
- StandardError
- CloudboxError
- Common::EntityError
- Defined in:
- lib/common/cloudbox_exceptions.rb
Overview
This error class represents a CRUD error on an entity
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Name of the entity.
-
#type ⇒ Object
readonly
Type of the entity.
Instance Method Summary collapse
-
#initialize(type, name, msg = nil) ⇒ EntityError
constructor
A new instance of EntityError.
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
#name ⇒ Object (readonly)
Name of the entity
37 38 39 |
# File 'lib/common/cloudbox_exceptions.rb', line 37 def name @name end |
#type ⇒ Object (readonly)
Type of the entity
33 34 35 |
# File 'lib/common/cloudbox_exceptions.rb', line 33 def type @type end |