Exception: GlobalSession::MalformedCookie
- Inherits:
-
ClientError
- Object
- Exception
- ClientError
- GlobalSession::MalformedCookie
- Defined in:
- lib/global_session.rb
Overview
The request has a session cookie, but the cookie is malformed and cannot be interpreted as session state.
Instance Attribute Summary collapse
-
#cookie ⇒ Object
readonly
Returns the value of attribute cookie.
Instance Method Summary collapse
-
#initialize(message, cookie = nil) ⇒ MalformedCookie
constructor
A new instance of MalformedCookie.
Constructor Details
#initialize(message, cookie = nil) ⇒ MalformedCookie
Returns a new instance of MalformedCookie.
54 55 56 57 58 59 60 61 |
# File 'lib/global_session.rb', line 54 def initialize(, =nil) if .nil? super() else super("(data[0..4]: '%s') - %s" % [[0..4], ]) @cookie = end end |
Instance Attribute Details
#cookie ⇒ Object (readonly)
Returns the value of attribute cookie.
52 53 54 |
# File 'lib/global_session.rb', line 52 def @cookie end |