Exception: Mojang::Errors::NoSuchUserError
- Inherits:
-
StandardError
- Object
- StandardError
- Mojang::Errors::NoSuchUserError
- Defined in:
- lib/errors.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user) ⇒ NoSuchUserError
constructor
A new instance of NoSuchUserError.
- #message ⇒ Object
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
#user ⇒ Object (readonly)
Returns the value of attribute user.
4 5 6 |
# File 'lib/errors.rb', line 4 def user @user end |
Instance Method Details
#message ⇒ Object
10 11 12 |
# File 'lib/errors.rb', line 10 def "No such user '#{@user}'." end |