Exception: Mojang::Errors::MojangError
- Inherits:
-
StandardError
- Object
- StandardError
- Mojang::Errors::MojangError
- Defined in:
- lib/errors.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(error, msg) ⇒ MojangError
constructor
A new instance of MojangError.
- #message ⇒ Object
Constructor Details
#initialize(error, msg) ⇒ MojangError
Returns a new instance of MojangError.
19 20 21 22 |
# File 'lib/errors.rb', line 19 def initialize(error, msg) @error = error @msg = msg end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
16 17 18 |
# File 'lib/errors.rb', line 16 def error @error end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
17 18 19 |
# File 'lib/errors.rb', line 17 def msg @msg end |
Instance Method Details
#message ⇒ Object
24 25 26 |
# File 'lib/errors.rb', line 24 def "#{@msg} (#{@error})" end |