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



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

def initialize(role_name)
  @role_name = role_name
end

Instance Method Details

#messageObject



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

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