Exception: Rublox::Errors::RoleNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- Rublox::Errors::RoleNotFoundError
- Defined in:
- lib/rublox/util/errors.rb
Overview
Exception raised when a role doesn’t exist.
Instance Attribute Summary collapse
-
#group_id ⇒ Integer
readonly
The given group’s ID.
-
#role_id ⇒ Integer
readonly
The given role’s ID.
Instance Method Summary collapse
-
#initialize(role_id, group_id) ⇒ RoleNotFoundError
constructor
A new instance of RoleNotFoundError.
Constructor Details
#initialize(role_id, group_id) ⇒ RoleNotFoundError
Returns a new instance of RoleNotFoundError.
77 78 79 80 81 |
# File 'lib/rublox/util/errors.rb', line 77 def initialize(role_id, group_id) @role_id = role_id @group_id = group_id super("The role of ID #{role_id} does not exist in group of ID #{group_id}.") end |
Instance Attribute Details
#group_id ⇒ Integer (readonly)
Returns the given group’s ID.
73 74 75 |
# File 'lib/rublox/util/errors.rb', line 73 def group_id @group_id end |
#role_id ⇒ Integer (readonly)
Returns the given role’s ID.
70 71 72 |
# File 'lib/rublox/util/errors.rb', line 70 def role_id @role_id end |