Exception: MaimaiNet::Error::GeneralError
- Inherits:
-
ServerError
- Object
- StandardError
- BaseError
- ServerError
- MaimaiNet::Error::GeneralError
- Defined in:
- lib/maimai_net/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ GeneralError
constructor
A new instance of GeneralError.
Methods inherited from BaseError
Constructor Details
#initialize(code) ⇒ GeneralError
Returns a new instance of GeneralError.
10 11 12 13 |
# File 'lib/maimai_net/error.rb', line 10 def initialize(code) super("Error #{code}") @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
14 15 16 |
# File 'lib/maimai_net/error.rb', line 14 def code @code end |