Exception: LinkedIn::CSRF

Inherits:
Error
  • Object
show all
Defined in:
lib/linkedin/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(expected = nil, received = nil) ⇒ CSRF

Returns a new instance of CSRF.



40
41
42
43
# File 'lib/linkedin/errors.rb', line 40

def initialize(expected = nil, received = nil)
  additional = "Excepted '#{expected}' but received '#{received}'" if expected
  super "Response state did not match sent state. #{additional}."
end