Exception: Mojang::Errors::NoSuchUserError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ NoSuchUserError

Returns a new instance of NoSuchUserError.



6
7
8
# File 'lib/errors.rb', line 6

def initialize(user)
  @user = user
end

Instance Attribute Details

#userObject (readonly)

Returns the value of attribute user.



4
5
6
# File 'lib/errors.rb', line 4

def user
  @user
end

Instance Method Details

#messageObject



10
11
12
# File 'lib/errors.rb', line 10

def message
  "No such user '#{@user}'."
end