Exception: Warden::Protocol::ProtocolError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/warden/protocol/base.rb

Overview

Used to wrap around Beefcake errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ ProtocolError

Returns a new instance of ProtocolError.



46
47
48
# File 'lib/warden/protocol/base.rb', line 46

def initialize(cause)
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



44
45
46
# File 'lib/warden/protocol/base.rb', line 44

def cause
  @cause
end

Instance Method Details

#messageObject



50
51
52
# File 'lib/warden/protocol/base.rb', line 50

def message
  return @cause.message
end