Exception: Rack::BlacklistCookies::ConfigurationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rack/blacklist_cookies/configuration.rb

Overview

ConfigurationError feeds configuration issues back to the user.

Instance Method Summary collapse

Constructor Details

#initialize(message = "Failed to configure correctly") ⇒ ConfigurationError

Returns a new instance of ConfigurationError.



36
37
38
# File 'lib/rack/blacklist_cookies/configuration.rb', line 36

def initialize(message = "Failed to configure correctly")
  @message = message
end

Instance Method Details

#docsObject



44
45
46
# File 'lib/rack/blacklist_cookies/configuration.rb', line 44

def docs
  "Docs are at https://github.com/notonthehighstreet/rack-blacklist_cookies "
end

#to_sObject



40
41
42
# File 'lib/rack/blacklist_cookies/configuration.rb', line 40

def to_s
  "#{@message}. #{docs}"
end