Exception: AocCli::Errors::UserInv

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aoc_cli/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ UserInv

Returns a new instance of UserInv.



13
14
15
# File 'lib/aoc_cli/errors.rb', line 13

def initialize(user)
	@user = user
end

Instance Method Details

#messageObject



16
17
18
19
20
21
# File 'lib/aoc_cli/errors.rb', line 16

def message
	<<~error
	#{ERROR}: Invalid user: #{@user.to_s.red}
	No key was found under this alias
	error
end