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.


11
12
13
14
15
# File 'lib/qb/role/errors.rb', line 11

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

Instance Attribute Details

#inputObject

Returns the value of attribute input.


9
10
11
# File 'lib/qb/role/errors.rb', line 9

def input
  @input
end