Exception: Monarchy::Exceptions::RoleNotExist
- Defined in:
- lib/monarchy/exceptions.rb
Instance Method Summary collapse
-
#initialize(role_name) ⇒ RoleNotExist
constructor
A new instance of RoleNotExist.
- #message ⇒ Object
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
#message ⇒ Object
31 32 33 |
# File 'lib/monarchy/exceptions.rb', line 31 def "Role '#{@role_name}' does not exist" end |