Exception: Monarchy::Exceptions::RoleNotExist

Inherits:
Error
  • Object
show all
Defined in:
lib/monarchy/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(role_name) ⇒ RoleNotExist

Returns a new instance of RoleNotExist.



28
29
30
# File 'lib/monarchy/exceptions.rb', line 28

def initialize(role_name)
  @role_name = role_name
end

Instance Method Details

#messageObject



32
33
34
# File 'lib/monarchy/exceptions.rb', line 32

def message
  "Role '#{@role_name}' does not exist"
end