Exception: CookieJar::InvalidCookieError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cookiejar/cookie_validation.rb

Overview

Represents all cookie validation errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ InvalidCookieError

Returns a new instance of InvalidCookieError.



6
7
8
9
10
11
12
# File 'lib/cookiejar/cookie_validation.rb', line 6

def initialize message
 if message.is_a? Array
   @messages = message
   message = message.join ', '
 end
 super(message)
end

Instance Attribute Details

#messagesObject (readonly)

Returns the value of attribute messages.



5
6
7
# File 'lib/cookiejar/cookie_validation.rb', line 5

def messages
  @messages
end