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
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
#message ⇒ Object
32 33 34 |
# File 'lib/monarchy/exceptions.rb', line 32 def "Role '#{@role_name}' does not exist" end |