Exception: MaimaiNet::Error::SessionRefreshError
- Inherits:
-
SessionError
- Object
- StandardError
- BaseError
- ServerError
- GeneralError
- SessionError
- MaimaiNet::Error::SessionRefreshError
- Defined in:
- lib/maimai_net/error.rb
Overview
This error is finnicky. Basically if this will happen when logging into non-home url either from previous cookie or through the provided callback.
Instance Attribute Summary
Attributes inherited from GeneralError
Instance Method Summary collapse
-
#initialize(code) ⇒ SessionRefreshError
constructor
A new instance of SessionRefreshError.
Methods inherited from BaseError
Constructor Details
#initialize(code) ⇒ SessionRefreshError
Returns a new instance of SessionRefreshError.
23 24 25 26 |
# File 'lib/maimai_net/error.rb', line 23 def initialize(code) super StandardError.instance_method(__method__).bind(self).call('Please access main page before accessing other pages.') end |