Exception: CookieJar::InvalidCookieError

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

Overview

Represents a set of cookie validation errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ InvalidCookieError

Create a new instance

Parameters:

  • the (String, Array<String>)

    validation issue(s) encountered



11
12
13
14
15
16
17
18
19
# File 'lib/cookiejar/cookie_validation.rb', line 11

def initialize message
 if message.is_a? Array
   @messages = message
   message = message.join ', '
 else
   @messages = [message]
 end
 super message
end

Instance Attribute Details

#messagesObject (readonly)

Array<String>

the specific validation issues encountered



7
8
9
# File 'lib/cookiejar/cookie_validation.rb', line 7

def messages
  @messages
end