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

- (InvalidCookieError) initialize(message)

Create a new instance



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

- (Object) messages (readonly)

Array<String>

the specific validation issues encountered



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

def messages
  @messages
end