Exception: Crabfarm::EntityNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/crabfarm/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/crabfarm/errors.rb', line 8

def name
  @name
end

#roleObject

Returns the value of attribute role.



8
9
10
# File 'lib/crabfarm/errors.rb', line 8

def role
  @role
end