Exception: Crabfarm::EntityNotFoundError
- Defined in:
- lib/crabfarm/errors.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#role ⇒ Object
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(_role, _name) ⇒ EntityNotFoundError
constructor
A new instance of EntityNotFoundError.
Constructor Details
#initialize(_role, _name) ⇒ EntityNotFoundError
Returns a new instance of EntityNotFoundError.
10 11 12 13 14 |
# File 'lib/crabfarm/errors.rb', line 10 def initialize(_role, _name) super("The required #{_role} was not found (#{_name})") @role = _role @name = _name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/crabfarm/errors.rb', line 8 def name @name end |
#role ⇒ Object
Returns the value of attribute role.
8 9 10 |
# File 'lib/crabfarm/errors.rb', line 8 def role @role end |