Exception: MaimaiNet::Error::SessionRefreshError

Inherits:
SessionError show all
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

#code

Instance Method Summary collapse

Methods inherited from BaseError

#maintenance?

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