Exception: GlobalSession::MalformedCookie
- Inherits:
-
ClientError
- Object
- Exception
- ClientError
- GlobalSession::MalformedCookie
- Defined in:
- lib/global_session.rb
Overview
Indicates that a client submitted a request with a session cookie that could not be decoded or decompressed.
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.
52 53 54 55 56 57 58 59 |
# File 'lib/global_session.rb', line 52 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.
50 51 52 |
# File 'lib/global_session.rb', line 50 def @cookie end |