Exception: QB::Role::NoMatchesError

Inherits:
UserInputError show all
Defined in:
lib/qb/role/errors.rb

Overview

raised by .require when no roles match input

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ NoMatchesError

Returns a new instance of NoMatchesError.



17
18
19
20
21
# File 'lib/qb/role/errors.rb', line 17

def initialize input
  @input = input
  
  super "no roles match input #{ @input.inspect }"
end

Instance Attribute Details

#inputObject

Returns the value of attribute input.



15
16
17
# File 'lib/qb/role/errors.rb', line 15

def input
  @input
end