Exception: MaimaiNet::Error::GeneralError

Inherits:
ServerError show all
Defined in:
lib/maimai_net/error.rb

Direct Known Subclasses

LoginError, SessionError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseError

#maintenance?

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

#codeObject (readonly)

Returns the value of attribute code.



14
15
16
# File 'lib/maimai_net/error.rb', line 14

def code
  @code
end